fastmcp/docs/servers
Jeremiah Lowin bc076cba12
Handle request_context availability during MCP initialization (#2400)
The on_initialize hook (2.13.0) runs before the MCP session is established, causing request_context
to be unavailable. Changed request_context to return None instead of raising, allowing middleware to
check availability and use HTTP helpers when needed. Updated docs to guide this pattern.

Closes #2393
2025-11-15 10:50:24 -05:00
..
auth Add version badge for DebugTokenVerifier in documentation (#2390) 2025-11-06 18:25:26 -05:00
composition.mdx Add storage backend documentation (#2137) 2025-10-19 19:24:13 -04:00
context.mdx Handle request_context availability during MCP initialization (#2400) 2025-11-15 10:50:24 -05:00
elicitation.mdx Add storage backend documentation (#2137) 2025-10-19 19:24:13 -04:00
icons.mdx Added to_data_uri method for Image class. (#2227) 2025-11-01 11:40:08 -04:00
logging.mdx Also push client messages (info/warn/debug) to server debug log (#2063) 2025-10-14 11:38:26 -07:00
middleware.mdx Handle request_context availability during MCP initialization (#2400) 2025-11-15 10:50:24 -05:00
progress.mdx Update parameter capitalization 2025-06-28 15:06:16 -04:00
prompts.mdx Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
proxy.mdx Improve docs on prefix rules (#2028) 2025-10-08 19:57:14 -04:00
resources.mdx Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
sampling.mdx Move sampling fallback handler docs to server section (#2163) 2025-10-21 10:02:11 -04:00
server.mdx Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
storage-backends.mdx Add maturity warnings for py-key-value backends 2025-10-29 21:43:31 +00:00
tools.mdx Improve ToolResult and structured output documentation (#2349) 2025-11-02 17:07:48 -05:00