Spaces:
Running
Running
Merge pull request #882 from jlowin/docs-session-id-update
Browse files- 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 |
|