server command group gives you a breadth-first view of any MCP server — connectivity, OAuth discovery, capabilities, tools, resources, and prompts — without writing code.
Quick start
oauth_required with the discovery metadata. See OAuth login to obtain a token, then re-run with --oauth-access-token.
Commands
server probe
Stateless HTTP probe — no full client connection. Tests transport selection, OAuth discovery, and WWW-Authenticate parsing.
initialize request and inspects the response.
What it returns:
- Transport type (streamable-http, SSE, or failed)
- OAuth metadata (resource metadata URL, authorization server metadata, registration strategies, scopes)
WWW-Authenticateheader parsing
server doctor
Combined triage — runs probe, then attempts a full client connection, then sweeps tools, resources, resource templates, and prompts. Returns a single JSON artifact.
status:ready,oauth_required, orerror- Probe results (transport, OAuth discovery)
- Initialization info and negotiated capabilities
- Counts: tools, resources, resource templates, prompts
--out <path> flag writes the full JSON artifact to a file — useful for handoff to another engineer or agent.
For stdio targets, those artifacts only record the explicit env keys you passed
via -e/--env; inherited shell variables are not enumerated.
server info
Get initialization info for a connected server.
serverInfo (name, version) and capabilities from the MCP initialize response.
server capabilities
Get resolved server capabilities.
server validate
Connect to a server and verify the debugger surface works.
server ping
Simple connectivity check.
server export
Export a full snapshot of the server’s tools, resources, prompts, and capabilities as JSON.
Shared server flags
Everyserver subcommand accepts these flags for specifying how to connect:
| Flag | Description |
|---|---|
--transport <transport> | Explicit transport type (http or stdio) |
--url <url> | HTTP MCP server URL |
--access-token <token> | Bearer access token |
--oauth-access-token <token> | OAuth bearer access token |
--refresh-token <token> | OAuth refresh token |
--client-id <id> | OAuth client ID (used with --refresh-token) |
--client-secret <secret> | OAuth client secret (used with --refresh-token) |
--header <header> | HTTP header in Key: Value format (repeatable) |
--client-capabilities <json> | Client capabilities as a JSON object |
--command <command> | Command for a stdio server |
--args <arg...> | Preferred stdio command arguments |
--command-args <arg> | Legacy stdio command argument (repeatable) |
-e, --env <env...> | Stdio environment KEY=VALUE values |
--cwd <path> | Working directory for the stdio child process |
-e/--env to add values or override inherited ones, and --cwd when the
command must run from a project directory.
If you pass --transport, the CLI validates that it matches the target flags
you provided instead of silently inferring the transport.

