mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-11-06 03:01:27 +01:00
`RequestDirector` builds each upstream request from the route's parameter map, which records where every declared parameter belongs. This change makes the map the single source of argument locations for every route, including operations that declare no parameters, so each request contains exactly what the OpenAPI operation declares. Arguments outside the map are dropped with a warning. Routes constructed by hand without a map get one from the same builder the parser uses, and they accept `<name>__<location>` for parameters declared at that location. If a map can't be built, the call fails before any request is sent. Resource and resource-template reads now follow the same header rule as tools: headers forwarded from the incoming MCP request fill in only headers the OpenAPI HTTP client hasn't already set. The headers you configure on the client are what the upstream receives. Co-authored-by: Bill Easton <williamseaston@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auth | ||
| client | ||
| group | ||
| sampling | ||
| telemetry | ||
| transports | ||
| __init__.py | ||
| minimal_stdio_server.py | ||
| test_client_extensions.py | ||
| test_elicitation.py | ||
| test_elicitation_enums.py | ||
| test_logs.py | ||
| test_notifications.py | ||
| test_oauth_callback_race.py | ||
| test_oauth_callback_xss.py | ||
| test_openapi.py | ||
| test_progress.py | ||
| test_roots.py | ||
| test_sampling.py | ||
| test_slim_package_boundaries.py | ||
| test_sse.py | ||
| test_stdio.py | ||
| test_streamable_http.py | ||