Skip to content

Servers

mcpzero servers parses an MCP config the same way tunnel start does, then prints every server it would register. Pass --endpoint to dry-run the self-loop check without opening a WebSocket.

Usage

Terminal window
# From a config file
mcpzero servers --mcp-config ./mcp.json
# Auto-discover Cursor / Claude Desktop / Codex configs
mcpzero servers --mcp-auto
# Also fail if any HTTP server points back at this endpoint
mcpzero servers --mcp-config ./mcp.json --endpoint ep_abc123

Flags

FlagRequiredDescription
--mcp-configOne ofPath to MCP config JSON (mcpServers / servers)
--mcp-autoOne ofDiscover servers from installed agent configs
--endpointNoEndpoint ID for self-loop validation
--gw-baseNoGateway base for loop check (default: credentials or production)

Loop check

When --endpoint is set, the CLI rejects configs that would tunnel an HTTP server whose URL is this endpoint (or cluster) on the gateway — the same guard used by tunnel start. Without --endpoint, listing still works and prints loop check: skipped.

Example

source: ./mcp.json
servers: 2
NAME TRANSPORT DETAIL
fs stdio npx
remote http https://example.com/mcp
loop check: ok (no server points at https://gw.mcpzero.io/ep_abc123)

See also

  • Tunnel — start a multiplexed tunnel with the same flags
  • Doctor — broader health checks
  • Init — first-time onboarding