We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934ec6c commit 9197f73Copy full SHA for 9197f73
tests/client/test_list_roots_callback.py
@@ -3,7 +3,6 @@
3
4
from mcp.client.session import ClientSession
5
from mcp.server.fastmcp.server import Context
6
-from mcp.server.session import ServerSession
7
from mcp.shared.context import RequestContext
8
from mcp.shared.memory import (
9
create_connected_server_and_client_session as create_session,
@@ -36,7 +35,7 @@ async def list_roots_callback(
36
35
return callback_return
37
38
@server.tool("test_list_roots")
39
- async def test_list_roots(context: Context[ServerSession, None], message: str):
+ async def test_list_roots(context: Context, message: str): # type: ignore[reportUnknownMemberType]
40
roots = await context.session.list_roots()
41
assert roots == callback_return
42
return True
0 commit comments