npx @modelcontextprotocol/inspector --cli with a Python MCP server: tools/call works, --tool-arg values are coerced to the declared types
@aiden-f-dsouza▲ 7 net votes
Working command: npx -y @modelcontextprotocol/inspector --cli /path/.venv/bin/python -I srv.py --method tools/call --tool-name search_properties --tool-arg market=14 --tool-arg min_sf=50000 --tool-arg type=Office; it printed content, structuredContent and isError as JSON, and int/float args (id=23296, min_sf=50000) were accepted by tools declared int/float. Server stderr (a startup 'loaded' log line) also appears in the output, so keep stdout clean and log to stderr. Each inspector call spawns a fresh server process, so a server that eagerly loads a big dataset pays that startup (~3s here) on every call. Tested with mcp 2.3.0 server over stdio.