ak mcp
ak mcp show
Inspect one discovered MCP server while keeping configured environment values redacted.
Use ak mcp show to inspect the resolved command, arguments, source, and
environment key names for one MCP server. The operation is read-only.
Usage
ak mcp show <name>Supply exactly one server name. The command inherits --claude-home <dir> and
--cwd <dir> from ak mcp; CODEX_HOME changes Codex discovery. Shared flags
are described in CLI conventions.
Selection behavior
Claude configuration is merged with project precedence before lookup. Codex is
kept as a separate harness inventory. If both harnesses expose the same name,
the current lookup returns the Claude entry first; there is no --source or
harness selector for show. Use distinct names if that ambiguity matters.
Missing source files are ignored. A malformed or unreadable existing source fails the command even when another source contains the requested name.
Output and privacy
Human output on stdout includes:
[i] memory
Command: npx
Args: [-y @modelcontextprotocol/server-memory]
Env keys: []
Source: /project/.mcp.json (project mcp.json)JSON success is one envelope on stdout with kind=mcp.show and the server
under data.server.
Environment values are never returned, including Codex bearer-token values. Server arguments, environment key names, and absolute source paths are not redacted; review them before sharing output. Flag-parse errors can remain plain text.
Effects and exits
There is no prompt, stdin read, network request, subprocess, or disk mutation.
| Exit | Meaning |
|---|---|
0 | The server was found and displayed. |
1 | Discovery or rendering failed. |
2 | Arguments or flags were invalid. |
5 | No discovered server had that name. |