Skip to content

Claude Desktop launches command args incorrectly #1971

Open
@hemna

Description

@hemna

Describe the bug
Trying to launch my own mcp.py script as an Claude Desktop MCP server.

Claude Desktop for Mac
Version 0.9.3

To Reproduce
Steps to reproduce the behavior:

  1. Edit claude_desktop_config.json and add entry to mcpServers with args.
  2. Launch Claude Desktop

Expected behavior
A clear and concise description of what you expected to happen.
I expect the mcp server to get called. It doesn't because of a weird args issue.

Logs
Why is it using 2 foward slashes before the args? //foo.py was not in my config?

│2025-05-30T14:54:14.103-0400 2025-05-30T18:54:14.100Z [weather] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"c│
│2025-05-30T14:54:14.254-0400 /Users/I530566/devel/mine/hamradio/haminfo/.venv/bin/python: can't open file '//foo.py': [Errno 2] No such file or directory                                            │
│2025-05-30T14:54:14.257-0400 2025-05-30T18:54:14.257Z [weather] [info] Server transport closed                                                                                                       │
│2025-05-30T14:54:14.258-0400 2025-05-30T18:54:14.257Z [weather] [info] Client transport closed

Additional context
My claude_desktop_config.json

{
  "mcpServers": {
    "weather": {
      "command": "/Users/I530566/devel/mine/hamradio/haminfo/.venv/bin/python",
      "args": [
        "foo.py"
      ],
      "env": {
        "VIRTUAL_ENV":"/Users/I530566/devel/mine/hamradio/haminfo/.venv"
      }
    }
  },
  "logging": {
    "level": "DEBUG"
  },
  "globalShortcut": "Ctrl+Q"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions