fastmcp/tests
Jeremiah Lowin 6aff9c94be Remove form-action from default consent CSP, forward consent_csp_policy in all providers
Drop form-action from the default Content Security Policy on the OAuth
consent page. Chrome enforces form-action across the entire redirect
chain, which breaks flows where an HTTPS callback internally redirects
to a custom scheme (e.g. claude://, cursor://). Since the form posts
to itself and all redirects are server-controlled, form-action adds
no security value here.

Also forward the consent_csp_policy parameter through all concrete
OAuth providers (Auth0, Azure, Google, GitHub, Discord, WorkOS, AWS
Cognito, OCI) so users can override the CSP without accessing private
attributes.
2026-03-03 14:55:00 -05:00
..
cli Address maintainer review: reload support, type annotation, test imports 2026-03-01 13:29:54 -05:00
client Add Google GenAI Sampling Handler (#2977) 2026-03-02 18:00:03 -05:00
contrib feat(contrib): auto-sync MCPMixin decorators with from_function signatures (#3323) 2026-03-02 17:30:30 -05:00
deprecated Remove deprecated FastMCP() constructor kwargs (#3148) 2026-02-11 11:39:34 -05:00
experimental Add ListTools, search limit, and catalog size annotation to CodeMode (#3359) 2026-03-02 18:00:21 -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 Fix Field() handling in prompts (#3050) 2026-02-01 21:28:44 -05:00
resources Split large test files to comply with loq line limit (#3328) 2026-02-28 11:21:11 -05:00
server Remove form-action from default consent CSP, forward consent_csp_policy in all providers 2026-03-03 14:55:00 -05:00
telemetry Use standard traceparent/tracestate keys per OTel MCP semconv (#3221) 2026-02-18 15:51:24 -05:00
tools Fix NameError with future annotations and Context/Depends parameters (#3243) 2026-02-20 09:22:10 -05:00
utilities Add FASTMCP_TRANSPORT setting for default transport selection (#1796) 2026-03-02 18:08:59 -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_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 session persistence across tool calls in multi-server MCPConfigTransport (#3330) 2026-03-02 17:19:43 -05:00