File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2121try :
2222 from mcp .server .lowlevel import Server # type: ignore[import-not-found]
2323 from mcp .server .lowlevel .server import request_ctx # type: ignore[import-not-found]
24- from mcp .server .streamable_http import StreamableHTTPServerTransport
24+ from mcp .server .streamable_http import StreamableHTTPServerTransport # type: ignore[import-not-found]
2525except ImportError :
2626 raise DidNotEnable ("MCP SDK not installed" )
2727
3232
3333
3434if TYPE_CHECKING :
35- from typing import Any , Callable , Optional
35+ from typing import Any , Callable , Optional , Tuple
3636
3737 from starlette .types import Receive , Scope , Send
3838
@@ -63,7 +63,9 @@ def setup_once() -> None:
6363 _patch_fastmcp ()
6464
6565
66- def _get_active_http_scopes ():
66+ def _get_active_http_scopes () -> (
67+ "Optional[Tuple[Optional[sentry_sdk.tracing.Scope], Optional[sentry_sdk.tracing.Scope]]]"
68+ ):
6769 try :
6870 ctx = request_ctx .get ()
6971 except LookupError :
You can’t perform that action at this time.
0 commit comments