We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a50cf92 commit 2628e01Copy full SHA for 2628e01
src/mcp/server/fastmcp/server.py
@@ -34,6 +34,7 @@
34
from mcp.server.lowlevel.server import (
35
lifespan as default_lifespan,
36
)
37
+from mcp.server.session import ServerSession
38
from mcp.server.sse import SseServerTransport
39
from mcp.server.stdio import stdio_server
40
from mcp.shared.context import RequestContext
@@ -597,7 +598,7 @@ def my_tool(x: int, ctx: Context) -> str:
597
598
The context is optional - tools that don't need it can omit the parameter.
599
"""
600
- _request_context: RequestContext | None
601
+ _request_context: RequestContext[ServerSession, Any] | None
602
_fastmcp: FastMCP | None
603
604
def __init__(
0 commit comments