diff --git a/docs/servers/middleware.mdx b/docs/servers/middleware.mdx index 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 + + 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