Local-first, agent-native developer tools.
stdio handshake failed: connection closed: initialize responsemcpctl connected the stdio pipes, spoke initialize, and the child closed
its stdout before responding — or responded with something that wasn’t
valid JSON-RPC.
Run with -v to surface the child’s stderr:
mcpctl -v tool list <server>
Common causes:
The server writes logs to stdout. stdio MCP servers must emit
only JSON-RPC on stdout. Any stray text — tracing output, banners,
println! debugging — poisons the channel.
Rust / tracing_subscriber:
tracing_subscriber::fmt()
.with_writer(std::io::stderr) // ← not stdout
.with_ansi(false)
.init();
Node servers should console.error instead of console.log.
The command isn’t on PATH. GUI-launched processes may have a
different PATH than your shell. Use absolute paths in the config:
"command": "/usr/local/bin/my-server".
Auth / env missing. HTTP servers often need an Authorization
header; stdio servers often need an API key in env. mcpctl passes
only the explicit env entries from the config.
server 'x' not foundmcpctl config sources
Confirms mcpctl is reading the config file you expect. If your server
lives in a source marked exists: no, that file doesn’t exist yet.
Names are case-sensitive and must match the name in the config file exactly.
tool 'x' not found on server 'y'mcpctl tool list y
Shows the exact tool names the server exposes. Some servers expose dynamic tool sets — reconnect after server state changes.
Default is 30s for the entire connect + call. For slow-starting servers:
mcpctl --timeout 120 my-slow-server/initialize_things
The timeout also applies to tool list, introspect, and tail.
mcpctl uses the macOS path for Claude Desktop
(~/Library/Application Support/Claude/...). On Linux it falls back to
~/.config/Claude/claude_desktop_config.json — only present if you’ve
created it manually.
Keep dev servers in Claude Code (~/.claude.json) or mcpctl’s own config
(~/.config/mcpctl/mcp.json).
Zed stores its MCP servers under context_servers in settings.json, not
under mcpServers. mcpctl parses this automatically. Check that:
mcpctl config sources).settings.command field — servers without a
command are skipped (Zed supports non-stdio servers mcpctl can’t launch).mcpctl passes the Authorization header verbatim. Verify with:
mcpctl server show my-api --reveal
Ensure the value is the full Bearer xxxx, not just the raw token. OAuth
flows with automatic refresh are not yet supported.
Not in 0.1.x. mcpctl is one-shot by design — stateless, like curl. A
daemon mode is on the roadmap; if you need sub-100ms repeated calls today,
embed rmcp directly in your own tool.
Open an issue at github.com/agent-rt/mcpctl/issues. Include:
mcpctl --version-v)mcpctl server show <name> --reveal
(redact tokens first)