Fix MCP server virtual environment issue with shell script

- Create run_mcp_server.sh script to properly handle uv virtual environment
- Update Claude Desktop config to use shell script instead of direct uv command
- Resolves 'ModuleNotFoundError: No module named mcp' issue

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-05-31 11:11:31 +07:00
parent defd03b13a
commit 09dcc8e507
2 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,7 @@
{
"mcpServers": {
"nomad-mcp": {
"command": "/Users/nkohl/.local/bin/uv",
"args": ["run", "python", "/Users/nkohl/Documents/Code/nomad_mcp/mcp_server.py"],
"cwd": "/Users/nkohl/Documents/Code/nomad_mcp",
"command": "/Users/nkohl/Documents/Code/nomad_mcp/run_mcp_server.sh",
"env": {
"NOMAD_ADDR": "http://pjmldk01.ds.meisheng.group:4646"
}