/aia-harness:add-mcp [path]from aia-harness
Suggests and generates strategic MCP server entries for the project's .mcp.json, using the mcp-catalog skill for curated options and safety rules. Writes env placeholders only.
Ships in aia-harness. Installing the plugin adds it to Claude Code.
Use the mcp-catalog skill for the curated list and safety rules.
Target directory: $1 if provided, else $CLAUDE_PROJECT_DIR.
Resolve this once, at the
start of this command, into a concrete literal absolute path. $CLAUDE_PROJECT_DIR is documented
as available "when hooks are executed" but is not guaranteed inside the general-purpose Bash tool
used to run these instructions — it can silently expand empty there, and the CLI then falls back
to the shell's current working directory, which is wrong if the agent has since cd'd elsewhere
(e.g. into the scratchpad for intermediate file work). Reuse that one resolved literal path in
every subsequent CLI invocation below — never re-expand a bare $CLAUDE_PROJECT_DIR in a later,
separately-issued Bash call, since each Bash tool call is a fresh shell (only cwd persists, not
exported variables) and an earlier cd silently redirects any later bare-env-var fallback to the
wrong place.
node "${CLAUDE_PLUGIN_ROOT}/bin/harness.mjs" version-check --json
Read status from the JSON:
"stale" — report running → latest, then AskUserQuestion: Update now (run the
returned updateCommand, then stop and tell the user to run /reload-plugins or start a new
session and re-issue this command — a running plugin copy cannot hot-swap itself) or
Continue on the current version (go straight to the next step)."current" or "unknown" — say nothing, continue.This check never blocks: it exits 0 even when it cannot reach the registry, and "unknown"
means the answer is unavailable, not that something is wrong.
Show the recommended MCP servers for this project. Get them from the plan:
node "${CLAUDE_PLUGIN_ROOT}/bin/harness.mjs" plan "${1:-$CLAUDE_PROJECT_DIR}" --json
(the .mcp.json artifact lists the recommended servers and required env vars),
plus any others from the mcp-catalog skill.
Use AskUserQuestion (multi-select) to let the user pick which servers to add.
Merge the chosen servers into the project-root .mcp.json (create it if
absent). Use ${ENV_VAR} placeholders for every secret — never a literal
token. If .mcp.json already exists, show a diff and merge, don't clobber.
For each required env var (e.g. SUPABASE_ACCESS_TOKEN), add an empty entry
under env in .claude/settings.local.json (gitignored) and tell the user to
fill it. Surface any prereqs reported in the plan's .mcp.json rationale.
Remind the user to restart Claude Code so the servers load, and to keep the server count small (high-signal servers only).
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub leandrosilvaferreira/claude-plugins-registry --plugin aia-harness17 commands in this plugin
/add-github-pmAdd GitHub PM to an existing harnessAdd GitHub PM pillar to an existing harness/add-obsidianAdd Obsidian vault memoryInstall and configure the Obsidian vault-as-memory pillar (vault skeleton, MCP server, hooks, rule) into this project/add-pluginsInstall market pluginsInstall the suggested Claude Code plugins for this stack (code-review, hookify, feature-dev, frontend-design, context7, claude-code-setup + per-language LSP). One confirmation, then auto-installs./add-toolsAdd project-level toolsInstall token-economy / code-graph tools. Caveman and ponytail install as global Claude Code plugins; rtk hook + claude-code-worktrees are vendored project-level automatically; binary/pkg installs run after one confirmation./audit-prompts/aia-harness:audit-promptsReview CLAUDE.md files, rules, skills, agents and commands for prompt text written for older Claude models and propose a diff fitted to the models the project pins — nothing is written until you approve./check-consistencyCheck consistency of an existing harnessAudit an existing harness end to end — every cross-reference between skills, agents, rules, commands, scripts and CLAUDE.md files, plus whether each artifact still fits the project's real stack — then fix what you approve.