fastmcp/tests
Jeremiah Lowin 30308332bb
Add FastMCPApp — a Provider for composable MCP applications (#3385)
* Add FastMCPApp — a Provider for composable MCP applications

* Wire Prefab callable resolver via to_json(tool_resolver=) parameter

* Remove inspect.signature compat check, use try/except until prefab 0.10.0

* Address review: fix add_tool registry gaps, normalize auth errors, bump prefab to 0.10.0

* Register global key after _add_component succeeds

* Simplify: extract decorator dispatch, use get_fastmcp_meta, expose get_global_tool

* Remove prek from Marvin workflows

These workflows run Claude to respond to /marvin mentions — linting
the repo is unnecessary and fails without renderer deps installed.

* Return ResolvedTool from callable resolver, add contacts example

The callable resolver now returns ResolvedTool (from prefab_ui) instead of a
plain string, carrying metadata like unwrap_result that the renderer needs to
correctly handle structuredContent envelopes. The unwrap_result flag is derived
from the tool's x-fastmcp-wrap-result output schema marker.

* Bump prefab-ui requirement to >=0.11.0

* Remove stale ty ignore comments now that prefab-ui 0.11 is published
2026-03-09 13:46:14 -04:00
..
cli Sanitize untrusted output in fastmcp list and fastmcp call (#3409) 2026-03-07 12:31:46 -05:00
client Guard default progress handler against zero totals (#3432) 2026-03-07 11:41:11 -05:00
contrib Block recursive self-invocation in BulkToolCaller (#3433) 2026-03-07 11:41:15 -05:00
deprecated Deprecate PromptToolMiddleware and ResourceToolMiddleware (#3389) 2026-03-06 17:17:01 -05:00
experimental Remove stale catalog cache from CodeMode execute 2026-03-03 16:49:50 -05:00
fs Add standalone decorators and eliminate fastmcp.fs module (#2832) 2026-01-10 12:16:35 -05:00
integration_tests Update repository references for transfer to prefecthq (#3207) 2026-02-18 10:33:56 -05:00
prompts Support ImageContent and AudioContent in Message class 2026-03-06 17:12:29 -05:00
resources Raise ValueError for invalid boolean query params in resource templates (#3424) (#3434) 2026-03-07 11:40:29 -05:00
server Block insecure HS* JWT verification with JWKS/public keys (#3430) 2026-03-07 12:20:48 -05:00
telemetry Use standard traceparent/tracestate keys per OTel MCP semconv (#3221) 2026-02-18 15:51:24 -05:00
tools Fix transform arg collisions with passthrough params (#3431) 2026-03-07 11:41:07 -05:00
utilities Fix async partial callables rejected by iscoroutinefunction (#3438) 2026-03-07 12:10:09 -05:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Drop diskcache dependency (CVE-2025-69872) (#3185) 2026-02-16 16:43:15 -05:00
test_apps.py Rename ui= to app= and consolidate ToolUI/ResourceUI into AppConfig (#3117) 2026-02-08 20:26:47 -05:00
test_apps_prefab.py Add Prefab Apps integration for MCP tool UIs (#3316) 2026-02-27 14:37:57 -05:00
test_fastmcp_app.py Add FastMCPApp — a Provider for composable MCP applications (#3385) 2026-03-09 13:46:14 -04:00
test_json_schema_generation.py fix: use SkipJsonSchema to exclude callable fields from JSON schema generation (#3048) 2026-02-01 21:30:48 -05:00
test_mcp_config.py Fix flaky test_multi_client_lifespan and test_multi_client_force_close 2026-03-03 16:43:27 -05:00