Skip to content

Setup, Skill & Doctor

Three commands help you connect a coding agent to Recon. recon setup-mcp writes the MCP server entry into your client’s config file. recon skill prints or installs a SKILL.md that tells an agent how to use Recon. recon doctor checks that the workspace the server will use is healthy.

In the samples on this page, the workspace path is shown as ~/code/api (/home/you/code/api once resolved), the home directory as /home/you, and the binary as /usr/local/bin/recon. Everything else is real output.

Run it from your workspace, or pass --workspace. Without --write it changes nothing and prints what it would add:

Terminal window
recon --workspace ~/code/api setup-mcp --client zed
[zed] /home/you/.config/zed/settings.json (dry-run; pass --write to merge)
{
"context_servers": {
"recon": {
"command": {
"args": [
"mcp",
"--workspace",
"/home/you/code/api"
],
"path": "/usr/local/bin/recon"
}
}
}
}

Add --write to merge that entry into the file. The header line then ends in (written) instead of the dry-run note.

Terminal window
recon --workspace ~/code/api setup-mcp --client claude --write
Flag Default Meaning
--client <CLIENT> claude One of claude, cursor, windsurf, zed, vscode, all.
--write off Merge the entry into the config file. Without it, the command only prints.
--config-path <PATH> per client, see below Use this file instead of the client’s default path. Ignored with --client all.
--workspace <DIR> . Global flag. The workspace the server entry points at.
--format <FORMAT> auto Global flag. json prints a JSON array. Every other value prints the text form.

The entry always launches the binary you ran setup-mcp with, using its absolute path. If Recon cannot work out its own path, it writes recon instead. The arguments are mcp, --workspace and the workspace as an absolute path with symlinks resolved.

--client Default config file Top-level key Entry under recon
claude ~/.claude.json mcpServers command, args
cursor ~/.cursor/mcp.json mcpServers command, args
windsurf ~/.codeium/windsurf/mcp_config.json mcpServers command, args
zed ~/.config/zed/settings.json context_servers command.path, command.args
vscode <workspace>/.vscode/mcp.json servers type: "stdio", command, args

~ is the HOME environment variable. If HOME is not set, Recon uses USERPROFILE, and if neither is set it uses the current directory. The same relative paths are used on every operating system. If your client keeps its config somewhere else on your machine, pass --config-path.

The vscode target writes inside the workspace, not your home directory.

These are the snippets for every client, from recon --workspace ~/code/api --format json setup-mcp --client all:

[
{
"client": "claude",
"config_path": "/home/you/.claude.json",
"written": false,
"snippet": {
"mcpServers": {
"recon": {
"args": [
"mcp",
"--workspace",
"/home/you/code/api"
],
"command": "/usr/local/bin/recon"
}
}
}
},
{
"client": "cursor",
"config_path": "/home/you/.cursor/mcp.json",
"written": false,
"snippet": {
"mcpServers": {
"recon": {
"args": [
"mcp",
"--workspace",
"/home/you/code/api"
],
"command": "/usr/local/bin/recon"
}
}
}
},
{
"client": "windsurf",
"config_path": "/home/you/.codeium/windsurf/mcp_config.json",
"written": false,
"snippet": {
"mcpServers": {
"recon": {
"args": [
"mcp",
"--workspace",
"/home/you/code/api"
],
"command": "/usr/local/bin/recon"
}
}
}
},
{
"client": "zed",
"config_path": "/home/you/.config/zed/settings.json",
"written": false,
"snippet": {
"context_servers": {
"recon": {
"command": {
"args": [
"mcp",
"--workspace",
"/home/you/code/api"
],
"path": "/usr/local/bin/recon"
}
}
}
}
},
{
"client": "vscode",
"config_path": "/home/you/code/api/.vscode/mcp.json",
"written": false,
"snippet": {
"servers": {
"recon": {
"args": [
"mcp",
"--workspace",
"/home/you/code/api"
],
"command": "/usr/local/bin/recon",
"type": "stdio"
}
}
}
}
]

No entry sets environment variables. To use a salt other than the default, set MASKKEEL_SALT in the environment your client starts the server with, or edit the entry yourself.

With --write, Recon reads the target file and changes only the recon entry:

  • If the file does not exist, or is empty or only whitespace, Recon starts from an empty object. Missing parent directories are created.
  • The file must be strict JSON. Comments or trailing commas make it fail with refusing to overwrite non-JSON config `<path>` .
  • The top level must be a JSON object, or it fails with expected top-level JSON object in `<path>` .
  • If the top-level key (mcpServers, context_servers or servers) exists, it must be an object, or it fails with expected JSON object at `<key>` inside `<path>` .
  • An existing recon entry under that key is replaced. Other servers under the key, and other top-level keys, are kept.
  • The whole file is written back as pretty-printed JSON with two-space indents and a trailing newline. Object keys come out in alphabetical order, so your original key order and formatting are not kept.
  • Recon writes a temporary file next to the target (its name ends in .json.tmp) and then renames it over the target.

For example, this file:

{
"theme": "dark",
"mcpServers": {
"other": { "command": "other-server" },
"recon": { "command": "old" }
}
}

after recon --workspace ~/code/api setup-mcp --write --config-path cfg/existing.json becomes:

{
"mcpServers": {
"other": {
"command": "other-server"
},
"recon": {
"args": [
"mcp",
"--workspace",
"/home/you/code/api"
],
"command": "/usr/local/bin/recon"
}
},
"theme": "dark"
}

With --client all --write, Recon writes the five files in the order claude, cursor, windsurf, zed, vscode. It stops at the first error. Files written before the error stay written.

The text form prints, for each client, a header line [<client>] <config path> (<state>) followed by the snippet. <state> is written or dry-run; pass --write to merge.

With --format json, it prints one array. Each item has:

Field Type Meaning
client string claude, cursor, windsurf, zed or vscode.
config_path string The file used, or that would be used.
written boolean true when --write was given.
snippet object The top-level key with the recon entry under it.
Code Meaning
0 Printed, or written, successfully.
2 A merge error (see above), an I/O error, or an invalid --client value.

recon skill prints a bundled SKILL.md to stdout. The text is compiled into the binary, so it is the same for every workspace and does not need one.

Terminal window
recon skill
---
name: recon
description: Code- and PII-safe API reconnaissance CLI + MCP cockpit (`recon`). Inspect failed requests, run HTTP requests against local/staging envs, run Twin-Run diffs, search Flight Recorder history, and verify Zero-PII Compliance Receipts without raw PII or secrets ever entering context.
---
# Recon CLI & MCP Skill (DX + AX)
Recon is a local-first API reconnaissance console combining Git-native `.http` collections, a SQLite WAL + FTS5 Flight Recorder (`.recon/flight.db`), a `maskkeel`-parity PII Airlock, an Outbound Secret Leak Firewall, and a 23-tool native MCP server.
...

The file is 69 lines long. It has YAML front matter (name: recon and a description), a “Primary Workflows” section with 16 numbered items pairing MCP tool calls with CLI commands, and a “Safety Contract” section.

To save it where your agent loads skills from, pass a directory:

Terminal window
recon skill --install skills/recon
Installed Recon skill to skills/recon/SKILL.md
Flag Meaning
--install <DIR> Create <DIR> and any missing parents, then write <DIR>/SKILL.md. An existing SKILL.md there is overwritten without asking. There is no default directory.

Without --install, nothing is written. --format has no effect on this command.

Exit code is 0 on success and 2 if the directory or file cannot be written.

recon doctor runs a fixed list of checks against a workspace and prints one line per check. Run it when an agent reports that the MCP server will not start, or before you hand a workspace to an agent.

Terminal window
recon --workspace ~/code/api --format human doctor
Recon Doctor (/home/you/code/api)
[ok] workspace_config: Loaded `demo` (default_env=`local`, require_approval_for_mutations=true)
[ok] collections: 3 request(s) loaded from `.http` files
[ok] environments: 2 environment(s), 3 host-scoped secret(s)
[ok] airlock: salt_fingerprint=9d2de0d49b08, column_rules=6, tables=0
[ok] flight_recorder: SQLite WAL + SHA-256 ledger valid (4 run(s), 0 pending approval(s))
[ok] loopback_socket: 127.0.0.1 ephemeral bind available for `recon ui`

The checks run in this order. Each has the status ok, warn or fail.

Name Checks warn when fail when
workspace_config The workspace loads. Detail shows the name, default_env and require_approval_for_mutations. never The workspace fails to load, for example .recon.toml does not parse. Detail ends with a hint to run recon init --demo.
collections Number of requests loaded from .http files. 0 requests never
environments Number of environments, and the number of secret variables across all of them. 0 environments never
airlock Loads the mask.toml named by mask_config, if that file exists. Detail shows the salt fingerprint and the number of column rules and tables. never mask.toml exists but is invalid (invalid mask.toml: ...).
flight_recorder Opens .recon/flight.db, verifies its SHA-256 hash chain and counts pending approvals (up to 50). never The database cannot be opened, the check errors, or the chain is broken (SHA-256 tamper mismatch at run ...).
loopback_socket Binds an ephemeral port on 127.0.0.1. never The bind fails.

If workspace_config fails, the collections, environments, airlock and flight_recorder checks are skipped. Only loopback_socket runs after it.

The salt fingerprint uses --salt or MASKKEEL_SALT, the same as recon mcp. Use it to confirm that the doctor and your MCP client use the same salt.

flight_recorder opens the database, which creates .recon/flight.db if it does not exist yet.

recon doctor does not read MCP client config files and does not start the MCP server.

Terminal window
recon --workspace ~/code/broken --format human doctor
Recon Doctor (/home/you/code/broken)
[fail] workspace_config: Workspace::load failed: parse error in `/home/you/code/broken/.recon.toml`: TOML parse error at line 1, column 8
|
1 | name =
| ^
string values must be quoted, expected literal string
(run `recon init --demo`)
[ok] loopback_socket: 127.0.0.1 ephemeral bind available for `recon ui`

With --format json, the doctor prints one object:

{
"checks": [
{
"detail": "Loaded `demo` (default_env=`local`, require_approval_for_mutations=true)",
"name": "workspace_config",
"status": "ok"
},
{
"detail": "3 request(s) loaded from `.http` files",
"name": "collections",
"status": "ok"
},
...
{
"detail": "127.0.0.1 ephemeral bind available for `recon ui`",
"name": "loopback_socket",
"status": "ok"
}
],
"healthy": true,
"workspace_root": "/home/you/code/api"
}
Field Type Meaning
healthy boolean false if any check has status fail. Warnings do not count.
workspace_root string The workspace as an absolute path.
checks[].name string Check name from the table above.
checks[].status string ok, warn or fail.
checks[].detail string Human-readable detail.

Every other --format value (human, agent, or auto) prints the text form.

Code Meaning
0 No check failed. Warnings are allowed.
1 At least one check failed.
2 The command itself could not run. An E_CLI_RUNTIME error is printed on stderr.