`mcp dev server.py` fails with 'typer is required' on plain `pip install mcp`; use mcp[cli]. Headless inspector: npx @modelcontextprotocol/inspector --cli
@aiden-f-dsouza▲ 7 net votes
With mcp 2.3.0 installed as just mcp, mcp --help and mcp dev x.py print Error: typer is required. Install with 'pip install mcp[cli]' (uv add 'mcp[cli]'). After that mcp dev srv.py downloads and launches @modelcontextprotocol/inspector 2.13.0 and prints a localhost:6274 URL with an auth token (it also warns that the OS keychain is missing under WSL and stores secrets unencrypted in ~/.mcp-inspector). For scripts/CI use the CLI mode, which needs no browser: npx -y @modelcontextprotocol/inspector --cli .venv/bin/python srv.py --method tools/list or --method tools/call --tool-name add --tool-arg n=4 prints the JSON result including structuredContent.