Configure mcp

From laurigates/claude-plugins · View interactive version

Configure mcp is an AI agent skill from the GitHub repository laurigates/claude-plugins. Check and configure MCP servers for project integration. Use when setting up MCP servers, checking MCP status, or adding new servers to a project.

How to use this skill

Skill file

/configure:mcp

Check and configure Model Context Protocol (MCP) servers for this project.

MCP Philosophy: Servers are managed project-by-project (in .mcp.json), not user-scoped (in ~/.claude/settings.json), to keep context clean and dependencies explicit.

For server configurations, environment variable reference, and report templates, see REFERENCE.md.

When to Use This Skill

| Use this skill when... | Use another approach when... |

|------------------------|------------------------------|

| Setting up MCP servers for a project | Configuring user-level settings (edit ~/.claude/settings.json directly) |

| Checking MCP server status and validating configuration | Just viewing .mcp.json contents (use Read tool) |

| Adding specific servers (context7, playwright, sequential-thinking, etc.) | Installing npm/bun packages for non-MCP purposes (use package manager) |

| Ensuring team-shareable MCP setups | Personal-only MCP configuration (use ~/.claude/settings.json) |

| Installing core productivity servers | Debugging specific server runtime issues (check server logs, restart Claude Code) |

Context

Parameters

Parse these from $ARGUMENTS:

If no flags provided, run interactive mode (detect → report → offer to install).

Core Servers

These servers should be installed in all projects. The core set is the mcpServers object of the repo baseline policy — pal (multi-model gateway), context7 (library docs) and sequential-thinking (reasoning) — and its settings.floor.enabledMcpjsonServers approves the same set in .claude/settings.json (merged by /configure:claude-plugins). Take each entry's config from the policy, not from memory.

Execution

Execute this MCP configuration workflow:

Step 1: Detect current state

First, test whether .mcp.json exists in the current working directory:

If --check-only, skip to Step 4 (report only).

Step 2: Identify servers to install

Based on the flags:

A pal entry that is present but not in policy form (Step 1) is selected for normalization in every mode except --check-only, whether or not it was requested; in interactive mode, include it in the AskUserQuestion confirmation. If every requested server is present and none needs normalization, report "All servers already configured" and stop.

Step 3: Install selected servers

For each selected server:

  1. Get the server configuration: core servers from the policy's mcpServers, every other server from REFERENCE.md.
  2. If .mcp.json doesn't exist, create it with {"mcpServers": {}}.
  3. Merge the server config into the existing mcpServers object. Preserve every other server untouched. To normalize a legacy pal entry, set its command and args to the policy's and set each env key the policy names to the policy's value; keep any extra env keys the existing entry carries.
  4. Write the updated .mcp.json with proper JSON formatting.

Handle git tracking:

Step 4: Report results

Print a summary using the report format from REFERENCE.md:

Step 5: Update standards tracking

If .project-standards.yaml exists, update the MCP section with current server list and timestamp.

Runtime Server Management

After configuring .mcp.json, use these /mcp commands in Claude Code to manage servers without editing files:

| Command | Description |

|---------|-------------|

| /mcp | List all configured servers and connection status |

| /mcp enable <server> | Enable a server for the current session |

| /mcp disable <server> | Disable a server for the current session (session-scoped) |

Note: Enable/disable are session-scoped only. Permanent changes require editing .mcp.json.

Under pi: the .mcp.json this skill writes works unchanged once pi-mcp-adapter is installed (pi install npm:pi-mcp-adapter; pi has no MCP client of its own). Its /mcp enable|disable persist in .pi/mcp.json rather than lasting one session. See docs/pi-export.md § MCP servers.

Agentic Optimizations

| Context | Command |

|---------|---------|

| Quick status check | jq -c '.mcpServers \| keys' .mcp.json 2>/dev/null |

| Validate JSON syntax | jq empty .mcp.json 2>&1 |

| List environment variables needed | jq -r '.mcpServers[] \| .env // {} \| keys[]' .mcp.json 2>/dev/null \| sort -u |

| Check if server installed | jq -e '.mcpServers.context7' .mcp.json >/dev/null 2>&1 && echo "installed" \|\| echo "missing" |

| Core servers install (automated) | /configure:mcp --core --fix |

| Specific server install (automated) | /configure:mcp --server context7 --fix |

| Check-only mode (CI/reporting) | /configure:mcp --check-only |

Flags

| Flag | Description |

|------|-------------|

| --check-only | Report status without offering to install servers |

| --fix | Install specified or suggested servers without prompting |

| --core | Install every core server in the policy's mcpServers |

| --server <name> | Install specific server (can be repeated) |

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.