fastmcp/tests
Jeremiah Lowin 139d2d8f96
Propagate x-fastmcp-wrap-result in tool result _meta (#3490)
* Propagate x-fastmcp-wrap-result flag in tool result _meta

🤖 Generated with Claude Code

Co-authored-by: Claude <noreply@anthropic.com>

* Skip listTools round-trip when _meta has x-fastmcp-wrap-result

🤖 Generated with Claude Code

Co-authored-by: Claude <noreply@anthropic.com>

* Use namespaced meta key: {"fastmcp": {"wrap_result": true}}

🤖 Generated with Claude Code

Co-authored-by: Claude <noreply@anthropic.com>

* Clean up _parse_call_tool_result: hoist cast import, document local CallToolResult import, extract fastmcp_meta

🤖 Generated with Claude Code

Co-authored-by: Claude <noreply@anthropic.com>

* Merge _meta in tasks result handler instead of overwriting

🤖 Generated with Claude Code

* Preserve type validation in meta-based unwrap path

🤖 Generated with Claude Code

* Fix type validation for wrapped task results, guard non-dict meta

🤖 Generated with Claude Code

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-14 11:09:46 -04:00
..
cli Sanitize untrusted output in fastmcp list and fastmcp call (#3409) 2026-03-07 12:31:46 -05:00
client Propagate x-fastmcp-wrap-result in tool result _meta (#3490) 2026-03-14 11:09:46 -04: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 fix: add version to components (#3458) 2026-03-13 17:33:50 -04: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 Propagate x-fastmcp-wrap-result in tool result _meta (#3490) 2026-03-14 11:09:46 -04:00
telemetry Use standard traceparent/tracestate keys per OTel MCP semconv (#3221) 2026-02-18 15:51:24 -05:00
tools Propagate x-fastmcp-wrap-result in tool result _meta (#3490) 2026-03-14 11:09:46 -04: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