AgentKit
DocsKitsCLI ReferenceDesktop App
BetaYou are reading docs for the beta channel (2.13.0-beta.20). Features may change before the next stable release.Switch to stable →

ak mcp

ak mcp list

List the redacted MCP inventory merged from Claude user, project, and Codex configuration.

Use ak mcp list before editing, linking, or verifying MCP configuration. It reads local config only and does not start any server.

Usage

ak mcp list

The command accepts no positional arguments and has no command-specific flags. MCP discovery flags are inherited:

FlagDefaultDescription
--claude-home <dir>AGENTKIT_CLAUDE_HOME or ~/.claudeSelect the Claude user root.
--cwd <dir>Current working directorySelect the project .mcp.json directory.

CODEX_HOME selects the Codex config root. Shared flags are described in CLI conventions.

Merge and redaction behavior

Within Claude sources, project .mcp.json wins over user .mcp.json, which wins over settings.json for a same-named server. Codex entries remain a separate harness inventory, so the result may contain a Claude and Codex entry with the same name.

Environment values are discarded during parsing. Output includes environment key names, plus server names, commands, arguments, enabled state, harness, source description, and absolute source path. Missing files are ignored; malformed or unreadable existing files fail the entire list.

Output

Human output on stdout lists the server name and source for each entry. An empty inventory prints No MCP servers found. and exits 0.

JSON output is one envelope on stdout:

{"schema_version":1,"kind":"mcp.list","data":{"servers":[],"total":0}}

The servers array contains redacted server objects. Do not treat the output as safe to publish solely because environment values are absent: paths, commands, arguments, and key names can still be sensitive.

Effects and exits

There is no prompt, stdin read, network request, subprocess, cache write, or config mutation.

ExitMeaning
0Discovery completed, including an empty inventory.
1A source root, existing file, or config body could not be resolved, read, or parsed.
2Arguments or flags were invalid.