Skip to content

Commit d58b39e

Browse files
committed
fix: correct RequestContext type parameters in roots callback example
1 parent c36602a commit d58b39e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/client.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,14 @@ For a complete working example, see [`examples/clients/simple-auth-client/`](../
324324
Clients can provide a `list_roots_callback` so that servers can discover the client's workspace roots (directories, project folders, etc.):
325325

326326
```python
327+
from typing import Any
328+
327329
from mcp import ClientSession, types
328330
from mcp.shared.context import RequestContext
329331

330332

331333
async def handle_list_roots(
332-
context: RequestContext[ClientSession, None],
334+
context: RequestContext[ClientSession, Any],
333335
) -> types.ListRootsResult:
334336
"""Return the client's workspace roots."""
335337
return types.ListRootsResult(

0 commit comments

Comments
 (0)