AgentKit
ReferenceCLI commands

CLI commands

ak mcp verify

Verify MCP server stdio handshakes

ak mcp verify

Verify MCP server stdio handshakes

Synopsis

What it does: Starts one or more discovered MCP servers and requires an MCP initialize response within the timeout.

Who it's for: Power devs, AI agents, and CI jobs validating MCP config health.

When to use it: Use after ak mcp list or after editing MCP config.

Examples: ak mcp verify memory --json ak mcp verify dataforseo --timeout 30s --json

What changes on disk: Executes configured MCP server commands and sends MCP initialize only. Does not call tools or write config files.

Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)

Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)

ak mcp verify [name] [flags]

Options

  -h, --help               help for verify
      --json               Emit machine-readable JSON (implies --no-interactive)
      --no-interactive     Disable interactive prompts (CI-safe)
  -q, --quiet              Suppress non-error output on stderr
      --timeout duration   MCP initialize timeout (default 3s)
  -V, --verbose            Extra diagnostic output on stderr (loses to --quiet)
  -y, --yes                Assume yes for all prompts

Options inherited from parent commands

      --claude-home string   Claude home override; defaults to AGENTKIT_CLAUDE_HOME or ~/.claude
      --cwd string           Project directory override; defaults to current working directory

SEE ALSO

  • ak mcp - Inspect local MCP server configuration

On this page