Swarm mcp
Inspect and optionally install MCP providers declared by the current swarm team. Non-invasive by default — reports status without modifying user MCP configuration unless explicitly requested.From its SKILL.md
npx -y skills add alexngai/claude-code-swarm --skill swarm-mcpAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.0 KB, as published. Nobody here has run it
/swarm-mcp — Inspect and Manage Team MCP Providers
You manage the MCP (Model Context Protocol) surface for the configured swarm team. Your role is to inspect declared providers, report health, and optionally install or sync with explicit user consent.
Design principles
- Non-invasive by default. Do NOT modify
.mcp.json,.claude/settings.json,.claude/settings.local.json, or user-global config without explicit user opt-in. - Check-and-notify over auto-install. Surface discrepancies. Let the user decide.
- Confirmation before any write. Always show a diff preview and wait for explicit approval.
Artifact sources
The swarm team loader (scripts/team-loader.mjs) has already populated the following cache files (one pass, at session start):
.swarm/claude-swarm/tmp/teams/<template>/mcp-providers.json— team-declared provider install specs.swarm/claude-swarm/tmp/teams/<template>/mcp-health.json— pre-computed health report (regenerated each session).swarm/claude-swarm/tmp/teams/<template>/scope/<role>.json— per-role scope files consumed by the PreToolUse hook.swarm/claude-swarm/tmp/teams/<template>/loadouts/<role>.json— debug view of resolved per-role loadout
Do NOT regenerate these files. They're owned by the team-loader.
Subcommands
Parse $ARGUMENTS as the first token to determine which subcommand to run.
check — Dry-run health report
Purpose: show declared providers vs active set, flag missing / refs / disabled / orphaned scope references.
Steps:
- Read
.swarm/claude-swarm/tmp/teams/<template>/mcp-health.json. If missing, ask the user to reload the team (/swarm <template>) — the loader populates this file. - Render the report using the classification fields:
ok[]— servers declared AND active (checkmark + source)missing[]— declared, not active (warning + suggestinstall)refs[]— symbolic refs deferred to consumer (inform)disabled[]— declared withdisabled: trueactiveOnly[]— active but not declared (informational)orphanedReferences[]— loadout scope references not backed by anything
- Print a compact table. Do NOT write any files.
install [name] — Explicit MCP install
Purpose: append a team-declared provider (from mcp-providers.json) to the project .mcp.json after explicit user confirmation. If [name] is omitted, list installable entries and ask the user to pick.
Steps:
- Read
.swarm/claude-swarm/tmp/teams/<template>/mcp-providers.json. - Read (or initialize) project-root
.mcp.json. - For each requested
name: a. Strip openteams-specific fields (ref,description,disabled) from the provider spec. b. If.mcp.jsonalready contains the same name, diff the specs and show both to the user. Ask whether to overwrite. c. Show the full diff that would land in.mcp.json. d. Wait for explicit user approval (yes/install/y) before writing. - Write
.mcp.jsonatomically. Inform the user they will need to restart Claude Code for the new server to connect.
Refuse to proceed if:
- The provider has
disabled: true(skip with a message) - The provider has
ref:but no bundled registry to resolve it (skip with a suggestion to run/swarm-mcp resolve-ref) - The user hasn't confirmed
permissions-sync — Explicit permissions sync
Purpose: merge loadout-driven permissions into .claude/settings.local.json under a clearly-marked swarm block. settings.local.json is user-owned and typically gitignored, so we never touch .claude/settings.json.
Steps:
- Collect the union of all roles' permissions:
.swarm/claude-swarm/tmp/teams/<template>/scope/<role>.json→permissions.{allow,deny,ask}- Scope entries → translated to
mcp__<server>__*(for bare server access) andmcp__<server>__<tool>(for exclude entries)
- Read
.claude/settings.local.json(or initialize an empty object if absent). - Locate or create a marked block:
(If JSON doesn't tolerate comments, use a sentinel entry like"permissions": { "allow": [ "/* swarm:<template>:start */", "...", "/* swarm:<template>:end */" ] }"// swarm:<template>:start".) - Replace the marked block's contents; preserve everything outside the sentinel fences.
- Show the diff, wait for confirmation, write atomically.
clean — Remove swarm-generated agents
Purpose: remove .claude/agents/<team>-* files written by swarm, respecting the generated_by: claude-code-swarm marker. Never touches hand-authored agents.
Steps:
- Scan
.claude/agents/*.md(or~/.claude/agents/<project-slug>-<team>-*.mdif the current team uses user scope). - Filter to files whose frontmatter contains:
generated_by: claude-code-swarmANDteam_name: <current-template>(if--teamgiven) or any swarm team (default)
- Show the list and confirm with the user before deleting.
- Optionally also delete
.swarm/claude-swarm/tmp/teams/<template>/cache files when--with-artifactsis given.
resolve-ref <ref> — (Deferred)
For future use. Currently prints a stub message indicating ref resolution requires an OpenHive hive connection or a bundled registry (not yet shipped).
Default behavior when no subcommand given
If $ARGUMENTS is empty, run the check subcommand — the safest and most informative default.
What you must NOT do
- Do not modify
.mcp.jsonwithout explicit user confirmation - Do not modify
.claude/settings.json(committed project settings) — only.claude/settings.local.json - Do not touch user-global config in
~/.claude/without explicit opt-in - Do not invoke
installorpermissions-syncwithout a clear user yes - Do not re-run the team-loader from inside this skill (
/swarmorloadTeamdoes that)