AgentKit
ReferenceCLI commands
BetaYou are reading docs for the beta channel (2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →

CLI commands

ak mcp verify

Verify MCP server stdio handshakes

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.

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

Usage

ak mcp verify [name] [flags]

Examples

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

Flags

FlagDescription
-h, --helphelp for verify
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
--timeout durationMCP initialize timeout (default 3s)
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Inherited flags

FlagDescription
--claude-home stringClaude home override; defaults to AGENTKIT_CLAUDE_HOME or ~/.claude
--cwd stringProject directory override; defaults to current working directory

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
  • ak mcp — Inspect local MCP server configuration

On this page