Spaces:
Running
Running
Jeremiah Lowin Claude commited on
Commit ·
dcaa53c
1
Parent(s): 4f48aed
Add session_id to context documentation
Browse filesFast follow to #881 to document the new session_id property.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- docs/servers/context.mdx +1 -0
docs/servers/context.mdx
CHANGED
|
@@ -293,6 +293,7 @@ async def request_info(ctx: Context) -> dict:
|
|
| 293 |
|
| 294 |
- **`ctx.request_id -> str`**: Get the unique ID for the current MCP request
|
| 295 |
- **`ctx.client_id -> str | None`**: Get the ID of the client making the request, if provided during initialization
|
|
|
|
| 296 |
|
| 297 |
### Advanced Access
|
| 298 |
|
|
|
|
| 293 |
|
| 294 |
- **`ctx.request_id -> str`**: Get the unique ID for the current MCP request
|
| 295 |
- **`ctx.client_id -> str | None`**: Get the ID of the client making the request, if provided during initialization
|
| 296 |
+
- **`ctx.session_id -> str | None`**: Get the MCP session ID for session-based data sharing (HTTP transports only)
|
| 297 |
|
| 298 |
### Advanced Access
|
| 299 |
|