Add 2.11 version badge for state management (#1289)

This commit is contained in:
Jeremiah Lowin 2025-07-29 07:41:13 -07:00 committed by GitHub
commit 4445c87bf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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