Skip to content

Commit 9f4b679

Browse files
committed
docs(context): add tenant_id field description to RequestContext docstring
Document the purpose and usage of the tenant_id field for multi-tenant server deployments.
1 parent 2f6fa78 commit 9f4b679

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mcp/shared/_context.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ class RequestContext(Generic[SessionT]):
1717
1818
For request handlers, request_id is always populated.
1919
For notification handlers, request_id is None.
20+
21+
The tenant_id field is used in multi-tenant server deployments to identify
22+
which tenant the request belongs to. It is populated from session context
23+
and enables tenant-specific request handling and isolation.
2024
"""
2125

2226
session: SessionT

0 commit comments

Comments
 (0)