fastmcp/docs/servers
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
..
auth Add server-side identity assertion (SEP-990 ID-JAG) (#4483) 2026-07-18 19:52:15 -04:00
providers Stop proxies from validating backend results or mutating shared transports (#4552) 2026-07-19 19:24:11 -04:00
transforms feat(code-mode): default sandbox limits and per-execution tool-call cap (#4170) 2026-05-20 10:47:12 -04:00
authorization.mdx Support async auth checks (#3152) 2026-02-11 12:48:51 -05:00
composition.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
context.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
dependency-injection.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
elicitation.mdx Fix stale MRTR/elicitation framing in client and upgrade docs (#4551) 2026-07-19 18:10:15 -04:00
icons.mdx Document icon theme support (#4537) 2026-07-18 20:57:36 -04:00
lifespan.mdx Restructure documentation for FastMCP 3.0 (#2951) 2026-01-19 21:33:35 -05:00
logging.mdx Restructure documentation for FastMCP 3.0 (#2951) 2026-01-19 21:33:35 -05:00
middleware.mdx Run FastMCP middleware for every inbound message (#4553) 2026-07-19 20:29:08 -04:00
pagination.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
progress.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
prompts.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
resources.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
sampling.mdx Fix stale MRTR/elicitation framing in client and upgrade docs (#4551) 2026-07-19 18:10:15 -04:00
server.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
storage-backends.mdx Fix broken code examples in docs (#3869) 2026-04-12 12:53:04 -04:00
tasks.mdx Speed up the unit test suite, and fix the task-notification race it surfaced (#4550) 2026-07-19 18:52:04 -04:00
telemetry.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
testing.mdx Restructure docs navigation: CLI section, Composition, More (#3361) 2026-03-02 21:09:48 -05:00
tool-fingerprinting.mdx docs: add tool fingerprinting recipe for stable schema hashing (#4233) 2026-05-27 10:52:14 -04:00
tools.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
versioning.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00
visibility.mdx Align server component docs (#4260) 2026-07-19 14:23:36 -04:00