fastmcp/docs
Jeremiah Lowin 3213776b25
Run FastMCP middleware for every inbound message (#4553)
* 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
2026-07-19 20:29:08 -04:00
..
.cursor/rules Clean up parameter documentation 2025-06-22 20:59:53 -04:00
apps Align client, Apps, and integration docs (#4261) 2026-07-19 14:30:51 -04:00
assets Animated (#3231) 2026-02-19 11:56:51 -05:00
cli Align CLI, deployment, and config docs (#4259) 2026-07-19 14:24:07 -04:00
clients Fix stale MRTR/elicitation framing in client and upgrade docs (#4551) 2026-07-19 18:10:15 -04:00
community Normalize repo references to PrefectHQ/fastmcp casing (#3218) 2026-02-18 14:51:18 -05:00
css Restore Mintlify's fixed banner positioning (#4542) 2026-07-18 21:25:39 -04:00
deployment Align CLI, deployment, and config docs (#4259) 2026-07-19 14:24:07 -04:00
development Run FastMCP middleware for every inbound message (#4553) 2026-07-19 20:29:08 -04:00
getting-started Fix stale MRTR/elicitation framing in client and upgrade docs (#4551) 2026-07-19 18:10:15 -04:00
integrations Align client, Apps, and integration docs (#4261) 2026-07-19 14:30:51 -04:00
more Speed up the unit test suite, and fix the task-notification race it surfaced (#4550) 2026-07-19 18:52:04 -04:00
patterns Align CLI, deployment, and config docs (#4259) 2026-07-19 14:24:07 -04:00
public/schemas/fastmcp.json chore: Update fastmcp.json schema (#1955) 2025-09-29 20:12:24 -04:00
python-sdk chore: Update SDK documentation (#4442) 2026-07-19 15:06:18 -04:00
servers Run FastMCP middleware for every inbound message (#4553) 2026-07-19 20:29:08 -04:00
snippets Fix docs app demo iframe assets (#4194) 2026-05-20 13:18:45 -04:00
tutorials Migrate to MCP SDK v2.0.0b2 (httpx2) (#4503) 2026-07-18 15:12:47 -04:00
v2 Fix typos (#4498) 2026-07-18 21:18:39 -04:00
.ccignore Add comprehensive OAuth 2.1 authentication system with WorkOS integration (#1327) 2025-08-01 17:06:55 -04:00
changelog.mdx Fix typos (#4498) 2026-07-18 21:18:39 -04:00
docs.json Add server-side identity assertion (SEP-990 ID-JAG) (#4483) 2026-07-18 19:52:15 -04:00
fastmcp-analytics.js [codex] Add FastMCP docs telemetry (#3727) 2026-03-31 19:32:09 -04:00
prefab-demo-payloads.js Fix docs app demo iframe assets (#4194) 2026-05-20 13:18:45 -04:00
python-sdk-pages.json chore: Update SDK documentation (#4360) 2026-06-27 10:36:03 -04:00
unify-intent.js Add tag to deployment pages (#3624) 2026-03-25 11:39:25 -04:00
updates.mdx Docs: forward-port v3.4.4 changelog entries (#4476) 2026-07-08 20:55:43 -04:00
v2-banner.js Update docs for 3.0 GA release (#3216) 2026-02-18 14:29:28 -05:00
v2-navigation.json chore: split v2 docs navigation into separate file (#3762) 2026-04-04 21:17:39 -04:00