fastmcp/tests/client
nate nowack 12e6bba4bc
Stop forwarding MCP transport headers to OpenAPI backends; add forward_client_headers (#6705)
* Stop forwarding MCP transport headers to OpenAPI backends; add forward_client_headers

OpenAPI components forwarded the client's mcp-protocol-version, mcp-method
and mcp-name headers to the wrapped API, and the docs suggested custom
credential headers were held back when only Authorization and Cookie are.
MCP transport headers are no longer forwarded, the docs say plainly what
is, and forward_client_headers (True, False, or a list of names) lets an
operator narrow client header forwarding. The default is unchanged.

Refs #5998

Co-authored-by: Syed Anas Mohiuddin <anas.syed@cognivators.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QCgr8ivX8pszLt8QP5sDMH

* Close the forward_client_headers example fence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QCgr8ivX8pszLt8QP5sDMH

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Syed Anas Mohiuddin <anas.syed@cognivators.com>
2026-11-23 06:46:45 +00:00
..
auth Run the Python and OS extremes on PRs and fix the Windows zero-expiry flake (#6618) 2026-11-21 04:55:15 +00:00
client Fix nightly upgrade checks: declare httpx, adopt ty 0.0.100 (#6517) 2026-11-17 03:50:31 +00:00
group Revert 12 contributions merged without enough review (#6434) 2026-11-10 14:18:38 -06:00
sampling Preserve or explicitly reject images in sampling tool results (#5554) 2026-11-10 13:30:40 -06:00
telemetry Set gen_ai.operation.name on tools/call spans (#6429) 2026-11-10 14:29:35 -06:00
transports Fix nightly upgrade checks: declare httpx, adopt ty 0.0.100 (#6517) 2026-11-17 03:50:31 +00:00
__init__.py clean up test inits 2025-05-31 19:32:08 -04:00
minimal_stdio_server.py Make the unit suite fast: in-process HTTP tests, no real sleeps, parallel Windows CI (#4554) 2026-07-20 10:51:14 -04:00
test_client_extensions.py Fall back to the client timeout when resolving claimed results (#5190) 2026-10-19 12:34:32 -05:00
test_elicitation.py Accept optional fields in elicitation schemas (#5907) 2026-11-22 19:11:12 +00:00
test_elicitation_enums.py Declare items.type on multi-select list shorthand elicitations (#6361) 2026-11-09 01:38:55 -06:00
test_logs.py Apply logging/setLevel to mounted servers over HTTP sessions (#6421) 2026-11-10 14:25:23 -06:00
test_notifications.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_oauth_callback_race.py Do not require websockets for the OAuth callback server (#5693) 2026-10-19 10:50:21 -05:00
test_oauth_callback_xss.py Escape all HTML to prevent XSS attack (#2090) 2025-10-14 12:30:21 -07:00
test_openapi.py Stop forwarding MCP transport headers to OpenAPI backends; add forward_client_headers (#6705) 2026-11-23 06:46:45 +00:00
test_progress.py Guard default progress handler against zero totals (#3432) 2026-03-07 11:41:11 -05:00
test_reference_hydration.py fix: decode URI fragments before schema reference hydration (#5561) 2026-11-10 13:30:24 -06:00
test_result_hydration.py Fix nightly upgrade checks: declare httpx, adopt ty 0.0.100 (#6517) 2026-11-17 03:50:31 +00:00
test_roots.py Merge remote-tracking branch 'origin/main' into modern-merge 2026-07-26 14:53:31 -04:00
test_sampling.py Silence ty deprecation diagnostics and drop stale sampling doc mentions 2026-07-26 14:45:55 -04:00
test_slim_package_boundaries.py Make Skill a storage-neutral object with folders as one loader (#6065) 2026-10-26 13:54:46 -05:00
test_sse.py Make the unit suite fast: in-process HTTP tests, no real sleeps, parallel Windows CI (#4554) 2026-07-20 10:51:14 -04:00
test_stdio.py Fix nightly upgrade checks: declare httpx, adopt ty 0.0.100 (#6517) 2026-11-17 03:50:31 +00:00
test_stdio_session_kwargs.py Let clients with different timeouts share a kept-alive stdio session (#6223) 2026-11-01 22:14:57 +00:00
test_streamable_http.py Expect the extended read timeout in the factory timeout test (#6395) 2026-11-10 02:30:41 -06:00
test_versioned_call_tool_validation.py fix(client): stop validating version-pinned call_tool results against the highest version's schema (#5725) 2026-11-10 13:29:23 -06:00