plugins/agents-reflection-skills/skills/mcp-management/SKILL.md
Search, install, configure, update, and remove MCP servers across coding agents (Claude Code, Cursor, VS Code, Claude Desktop, Gemini CLI, Codex, Goose, Zed, and more). Supports multi-agent installation via npx add-mcp, the official MCP registry, and direct config editing.
npx skillsauth add codealive-ai/agents-reflection-skills mcp-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
IMPORTANT: After adding, removing, or updating MCP servers, inform the user to restart the affected agent for changes to take effect.
CRITICAL: Before removing any server, use AskUserQuestion to confirm with the user.
# Install
claude mcp add --transport http <name> <url>
claude mcp add --transport stdio <name> -- <command> [args...]
claude mcp add-json <name> '<json>' # Full JSON config in one shot
# List/inspect
claude mcp list
claude mcp get <name>
# Remove (confirm with user first!)
claude mcp remove <name>
# OAuth login/logout (for OAuth-protected HTTP servers)
claude mcp login <name>
claude mcp logout <name>
Options must come BEFORE the server name. As of 2026-04, --transport http (Streamable HTTP) is recommended; sse is end-of-life.
Plugin MCP servers connect automatically at session start. Use /reload-plugins to re-init after enabling/disabling a plugin mid-session.
Install MCP servers to multiple coding agents at once using add-mcp:
# Remote server (HTTP)
npx add-mcp https://mcp.example.com/mcp
# npm package (stdio)
npx add-mcp @modelcontextprotocol/server-postgres
# Local command
npx add-mcp "npx -y @org/mcp-server --flag value"
# SSE transport
npx add-mcp https://mcp.example.com/sse --transport sse
| Flag | Description |
|------|-------------|
| -g, --global | Install globally instead of project-level |
| -a, --agent <agent> | Target specific agent(s), repeatable |
| -n, --name <name> | Custom server name |
| -t, --transport <type> | HTTP (default) or SSE |
| --header <header> | Custom HTTP headers, repeatable |
| -y, --yes | Skip confirmation prompts |
| --all | Install to all detected agents |
| Agent | CLI Argument | Supports Project-Level |
|-------|-------------|----------------------|
| Claude Code | claude-code | Yes (.mcp.json) |
| Claude Desktop | claude-desktop | No (global only) |
| Cursor | cursor | Yes (.cursor/mcp.json) |
| VS Code | vscode | Yes (.vscode/mcp.json) |
| Gemini CLI | gemini-cli | Yes (.gemini/settings.json) |
| Codex | codex | Yes (.codex/config.toml, trusted projects only) |
| Goose | goose | No (global only) |
| GitHub Copilot CLI | github-copilot-cli | Yes (.vscode/mcp.json) |
| OpenCode | opencode | Yes (opencode.json) |
| Zed | zed | Yes (.zed/settings.json) |
# Install to Claude Code and Cursor only
npx add-mcp -a claude-code -a cursor https://mcp.stripe.com
# Install npm package to all agents, globally
npx add-mcp -g --all @modelcontextprotocol/server-postgres
# Install with custom name and headers
npx add-mcp -n my-api --header "Authorization: Bearer TOKEN" https://api.example.com/mcp
# List available agents
npx add-mcp list-agents
See references/multi-agent.md for agent-specific config paths, formats, and transformations.
When users ask to find or install an MCP server, see references/search.md for:
Trust hierarchy: Official vendor > MCP reference servers > Verified partners > Community
The --env CLI flag is unreliable with special characters. Instead:
Add server without env vars:
claude mcp add --transport stdio <name> -- npx -y @package/mcp-server
Edit config file to add env vars. See references/scopes.md for file locations.
Before installing, check if the server needs API keys or tokens. Use AskUserQuestion to collect required values before running install commands.
No direct update command exists. Options:
For OAuth servers (GitHub, Sentry): Run /mcp in Claude Code to re-authenticate.
Always confirm with user via AskUserQuestion before removing.
claude mcp remove <server-name>
For project-scoped servers in .mcp.json, delete the entry from the file after user confirmation.
For OpenCode (anomalyco/opencode v1.14.x):
mcp (not mcpServers); each server must declare type: "local" or type: "remote"command is a single array ["bin", "arg1", "arg2"] — there's no separate args fieldenvironment (not env)enabled: false disables without removingopencode mcp auth <name> / opencode mcp logout <name> for OAuth servers (e.g., GitHub)tool.execute.* hooks do not fire for MCP tool calls in v1.14.x — use permission rules insteadSee references/opencode-mcp.md for the full OpenCode MCP reference.
| Scope | Flag | Config Location | Use Case |
|-------|------|-----------------|----------|
| Local | --scope local (default) | ~/.claude.json | Personal dev servers |
| Project | --scope project | .mcp.json | Team-shared servers |
| User | --scope user | ~/.claude.json | Cross-project tools |
In config files: ${VAR} or ${VAR:-default}
Use cmd /c wrapper for npx:
claude mcp add --transport stdio my-server -- cmd /c npx -y @some/package
development
Use this skill when the user asks to plan, design, scope, estimate, or implement a feature, bug fix, refactor, migration, integration, API change, UI change, or other project modification. Enforces a planning gate before editing code — investigate project context, analyze the task, surface ambiguities, contradictions, risks, dependencies, and blockers, ask focused questions, produce an evidence-based step-by-step plan, and implement only after explicit user approval. Not for trivial one-line edits, pure questions about the codebase, or changes the user has already reviewed and approved for direct implementation.
tools
Hands-on playbook for Windows 11 disk cleanup, dev-machine optimization, and proactive health alerting. Use when the PC is full or slow, when a BSOD / Kernel-Power 41 / crash dump / commit-memory pressure happened, when the user asks to free disk space, audit storage, set up disk/memory alerts, or restore the same monitoring on a new PC. Built around native Microsoft-supported tooling (Storage Sense, cleanmgr, DISM, pnputil, vssadmin, wevtutil, powercfg) as the safety floor, a drift-protected HTML cleanup UI, and a Task Scheduler + BurntToast alerter. Covers dev machines with heavy AI/Docker/WSL workloads. Not for general Windows support, hardware diagnostics, GPU/driver troubleshooting, antivirus/malware removal, Windows Update repair, networking, or app-specific performance problems unrelated to disk or memory pressure.
tools
Search, find, discover, install, remove, update, review, list, move, optimise, and iterate on skills for AI coding agents. Use when user asks "find a skill for X", "search for a skill", "is there a skill for X", "install skill", "remove skill", "update skills", "list skills", "review skill quality", "move skill", "check for updates", "optimise skill", "train skill on tasks", "iterate skill", "audit skill edits", "log skill edit", "diff skill versions", "trigger test skill", "transfer skill across agents", or "how do I do X" where X might have an existing skill. THE tool for skill discovery, ecosystem search, and SkillOpt-style training loops. Do not use for creating skills from scratch (use /skill-creator instead).
development
First Principles Framework (FPF) — thinking amplifier. Use when user wants to think through a complex problem, architect a system, evaluate alternatives, decompose complexity, classify problems, define quality attributes, plan rigorously, make decisions under uncertainty, establish causality, reason about time and trends, describe architecture or structural views, check mathematical model fit, or improve pattern quality. Also triggers on: FPF, bounded contexts, SoTA packs, assurance calculus, decision theory, causal reasoning, temporal reasoning, architecture description, quality gates, FPF Parts A-K. Not for simple task planning, general philosophy, or Agile unrelated to FPF.