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:
@ -1,9 +1,7 @@
|
|||||||
{
|
{
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"nomad-mcp": {
|
"nomad-mcp": {
|
||||||
"command": "/Users/nkohl/.local/bin/uv",
|
"command": "/Users/nkohl/Documents/Code/nomad_mcp/run_mcp_server.sh",
|
||||||
"args": ["run", "python", "/Users/nkohl/Documents/Code/nomad_mcp/mcp_server.py"],
|
|
||||||
"cwd": "/Users/nkohl/Documents/Code/nomad_mcp",
|
|
||||||
"env": {
|
"env": {
|
||||||
"NOMAD_ADDR": "http://pjmldk01.ds.meisheng.group:4646"
|
"NOMAD_ADDR": "http://pjmldk01.ds.meisheng.group:4646"
|
||||||
}
|
}
|
||||||
|
3
run_mcp_server.sh
Executable file
3
run_mcp_server.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /Users/nkohl/Documents/Code/nomad_mcp
|
||||||
|
/Users/nkohl/.local/bin/uv run python mcp_server.py
|
Reference in New Issue
Block a user