π The fast, Pythonic way to build MCP servers and clients.
Add session_id to context documentation
Jeremiah Lowin28fe5082d221
diff --git a/docs/servers/context.mdx b/docs/servers/context.mdxindex 0f075d264..769c0b2d7 100644--- a/docs/servers/context.mdx+++ b/docs/servers/context.mdx@@ -293,6 +293,7 @@ async def request_info(ctx: Context) -> dict:- **`ctx.request_id -> str`**: Get the unique ID for the current MCP request- **`ctx.client_id -> str | None`**: Get the ID of the client making the request, if provided during initialization+- **`ctx.session_id -> str | None`**: Get the MCP session ID for session-based data sharing (HTTP transports only)### Advanced Access