-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'uvicorn' #74
Comments
I am not a |
Got the same issue while following the quickstart, by running the following command worked for me |
This problem doesn't only affect uvicorn, but possibly all projects dependencies, because -- if i understand correctly -- the way the I was able to fix this by editing the generated mcp settings file as follows: "My MCP Server": {
"command": "uv",
"args": [
"run",
- "--with"
- "uvicorn"
- "--with"
- "another-dependency"
+ "--project",
+ "C:\\my-mcp-server-project",
"fastmcp",
"run",
"C:\\my-mcp-server-project\\server.py"
]
} To avoid the |
I'm needing to manually add uvicorn to my package to run in dev mode.
Then when installed in Claude desktop I just see the following in Claude logs
ModuleNotFoundError: No module named 'uvicorn'
in claude logs stemming fromsite-packages/fastmcp/server.py
The text was updated successfully, but these errors were encountered: