Initial Checks
Description
I noticed that you intend to lazy-import uvicorn because it's only used for HTTP/SSE transports. However, I found that it's still being imported immediately, as sse-starlette imports it eagerly, and sse-starlette is imported here:
https://github.com/search?q=repo%3Amodelcontextprotocol%2Fpython-sdk+sse_starlette+language%3APython&type=code
Example Code
import sys, mcp
assert "uvicorn" in sys.modules
Python & MCP Python SDK
Initial Checks
Description
I noticed that you intend to lazy-import
uvicornbecause it's only used for HTTP/SSE transports. However, I found that it's still being imported immediately, assse-starletteimports it eagerly, andsse-starletteis imported here:https://github.com/search?q=repo%3Amodelcontextprotocol%2Fpython-sdk+sse_starlette+language%3APython&type=code
Example Code
Python & MCP Python SDK