mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
* Make the SDK seam the root of FastMCP middleware dispatch (D3) Notifications, cancellations, and malformed/unroutable messages now reach on_message/on_request/on_notification at the SDK seam. Component methods keep their interior dispatch (typed hooks, tool-exception visibility) unchanged; the seam covers only messages the interior never dispatches, so each hook fires once. * Document the middleware seam coverage and suspend semantics (D3) * Align seam docs and ask-visibility test with the result-cycle MRTR model An InputRequiredResult is the full result of a complete request->response cycle, not a suspension: component hooks observe an asking round's InputRequiredToolResult as an ordinary return value. * Replace 'seam' language with plain dispatch terminology * Keep the raw middleware __call__ signature; forward middleware message edits * Cover fires-once across an MRTR continuation round * Align cherry-picked coverage test with renamed recorder * Rewrite only the message, never the dispatch destination |
||
|---|---|---|
| .. | ||
| auth | ||
| http | ||
| middleware | ||
| mount | ||
| providers | ||
| sampling | ||
| tasks | ||
| telemetry | ||
| transforms | ||
| versioning | ||
| __init__.py | ||
| test_app_state.py | ||
| test_auth_integration.py | ||
| test_auth_integration_errors.py | ||
| test_cache_hints.py | ||
| test_context.py | ||
| test_dependencies.py | ||
| test_dependencies_advanced.py | ||
| test_event_store.py | ||
| test_fastapi_testclient_compat.py | ||
| test_file_server.py | ||
| test_icons.py | ||
| test_input_validation.py | ||
| test_log_level.py | ||
| test_logging.py | ||
| test_mrtr_guards.py | ||
| test_pagination.py | ||
| test_protocol_eras.py | ||
| test_providers.py | ||
| test_server.py | ||
| test_server_docket.py | ||
| test_server_lifespan.py | ||
| test_server_safety.py | ||
| test_session_visibility.py | ||
| test_streamable_http_no_redirect.py | ||
| test_tool_annotations.py | ||
| test_tool_transformation.py | ||
| test_transport.py | ||