From 28fe5082d22143668c60cd12d7a3600b4e9756c8 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:35:59 -0400 Subject: [PATCH] Add session_id to context documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fast follow to #881 to document the new session_id property. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docs/servers/context.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/servers/context.mdx b/docs/servers/context.mdx index 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