arcade-mcp/libs/arcade-mcp-server/arcade_mcp_server
Eric Gustin b780e5b807
Fix stdio bugs (#608)
1. Updates `arcade configure claude --from-local` to create a valid json
config for claude desktop. NOTE: The `arcade configure` command needs
some re-work. It's fragile.
2. Fixes bug where stdio servers were sending logs to the wrong sink.
3. Disabled colorized logs for stdio.
4. Added missing dependency `httpx` for servers created with `arcade
new`

## Claude Desktop json configuration for stdio
Personally I like option 1 because the configuration looks the simplest
### Option 1:
Equivalent to `python server.py stdio`
```
{
  "globalShortcut": "Alt+Ctrl+Space",
  "mcpServers": {
    "my_server": {
      "command": "/path/to/my/mcp/server/directory/.venv/bin/python",
      "args": [
        "/path/to/my/mcp/server/directory/server.py",
        "stdio"
      ]
    }
  }
}
```
### Option 2:
Equivalent to `uv run server.py stdio`
```
{
  "mcpServers": {
    "my_server": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/my/mcp/server/directory",
        "python",
        "server.py",
        "stdio"
      ]
    }
  }
}
```
### Option 3:
Equivalent to `python -m arcade_mcp_server stdio --cwd ./`
```
{
  "mcpServers": {
    "my_server": {
      "command": "/path/to/my/mcp/server/directory/.venv/bin/python",
      "args": [
        "-m",
        "arcade_mcp_server",
        "stdio",
        "--cwd",
        "/path/to/my/mcp/server/directory"
      ]
    }
  }
}
```
2025-10-07 18:53:53 -07:00
..
auth Local MCP Fixes and Address General Feedback (#586) 2025-09-29 16:00:47 -07:00
fastapi Local MCP Fixes and Address General Feedback (#586) 2025-09-29 16:00:47 -07:00
managers MCP Local (#563) 2025-09-25 15:28:15 -07:00
middleware MCP Local (#563) 2025-09-25 15:28:15 -07:00
transports MCP Local (#563) 2025-09-25 15:28:15 -07:00
__init__.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
__main__.py Fix stdio bugs (#608) 2025-10-07 18:53:53 -07:00
context.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
convert.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
exceptions.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
lifespan.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
mcp_app.py Fix stdio bugs (#608) 2025-10-07 18:53:53 -07:00
server.py Local MCP Fixes and Address General Feedback (#586) 2025-09-29 16:00:47 -07:00
session.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
settings.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
types.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
worker.py Local MCP Fixes and Address General Feedback (#586) 2025-09-29 16:00:47 -07:00