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 --jsonFlags
| Flag | Description |
|---|---|
-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 |
Inherited flags
| Flag | Description |
|---|---|
--claude-home string | Claude home override; defaults to AGENTKIT_CLAUDE_HOME or ~/.claude |
--cwd string | Project directory override; defaults to current working directory |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
Related commands
ak mcp— Inspect local MCP server configuration