π The fast, Pythonic way to build MCP servers and clients.
Add 2.11 version badge for state management (#1289)
Jeremiah Lowin4445c87bf4a1
diff --git a/docs/servers/middleware.mdx b/docs/servers/middleware.mdxindex ecaa07737..7cacf39df 100644--- a/docs/servers/middleware.mdx+++ b/docs/servers/middleware.mdx@@ -280,6 +280,8 @@ You have complete control over the request flow:#### State Management+<VersionBadge version="2.11.0" />+In addition to modifying the request and response, you can also store state data that your tools can (optionally) access later. To do so, use the FastMCP Context to either `set_state` or `get_state` as appropriate. For more information, see the [Context State Management](/servers/context#state-management) docs.## Creating Middleware