mcp-manager

A command for managing MCP server settings across Claude Code, Cursor, Codex, and OpenCode. MCP, or Model Context Protocol, is a way for coding tools to connect to external servers that provide additional data or actions.

In plain words
What is it for?
Use it to inspect or manage MCP server configurations in .mcp.json, Cursor's MCP file, Codex's TOML configuration, and OpenCode's JSON configuration.
Why use it?
It avoids manually checking different configuration files and formats for each coding tool. It helps you see whether the expected server settings exist and manage them consistently.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nicepkg/vsync/mcp-manager
Clone the repo
git clone --depth 1 https://github.com/nicepkg/vsync

Made for: Claude Code.

Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,606 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.02606
Opus 5 $0.00008 $0.01303
Sonnet 5 $0.00003 $0.00521
Haiku 4.5 $0.00002 $0.00261

Measured 2d ago against content hash 731107b36e14, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

mcp-manager scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep '^\[mcp_servers\.' .codex/config.toml 2>/dev/null | sed 's/\[mcp_servers\.\(.*\)\]/\1/' || echo "No .codex/config.toml"

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

cat .mcp.json 2>/dev/null | jq '.mcpServers | keys[]' 2>/dev/null || echo "No .mcp.json"
.claude/commands/mcp-manager.md · 370 lines

How it starts

The opening of the file, as written. The whole thing — 370 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Server Manager

Manage MCP server configurations across multiple AI coding tools.

Command: $ARGUMENTS

Context

  • Project root: !pwd
  • Claude Code config: !test -f .mcp.json && echo "✅ exists" || echo "❌ missing"
  • Cursor config: !test -f .cursor/mcp.json && echo "✅ exists" || echo "❌ missing"
  • Codex config: !test -f .codex/config.toml && echo "✅ exists" || echo "❌ missing"
  • OpenCode config: !test -f opencode.json && echo "✅ exists" || echo "❌ missing"

Supported Tools & Config Locations

Tool Config File Format Env Var Syntax
Claude Code .mcp.json JSON ${VAR}
Cursor .cursor/mcp.json JSON ${env:VAR}
Codex .codex/config.toml TOML env_vars = ["VAR"]
OpenCode opencode.json JSON {env:VAR}

Commands

List: Show Current MCP Servers

# Claude Code
cat .mcp.json 2>/dev/null | jq '.mcpServers | keys[]' 2>/dev/null || echo "No .mcp.json"

# Cursor
cat .cursor/mcp.json 2>/dev/null | jq '.mcpServers | keys[]' 2>/dev/null || echo "No .cursor/mcp.json"

# OpenCode
cat opencode.json 2>/dev/null | jq '.mcp | keys[]' 2>/dev/null || echo "No opencode.json"

# Codex
grep '^\[mcp_servers\.' .codex/config.toml 2>/dev/null | sed 's/\[mcp_servers\.\(.*\)\]/\1/' || echo "No .codex/config.toml"

Config Formats (Based on Real Examples)

Local Server (stdio)

Claude Code (.mcp.json):

{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": ["-y", "slack-mcp-server@latest", "--transport", "stdio"],
      "env": {
        "SLACK_MCP_XOXP_TOKEN": "${SLACK_MCP_XOXP_TOKEN}",
        "SLACK_MCP_ADD_MESSAGE_TOOL": "${SLACK_MCP_ADD_MESSAGE_TOOL}"
      }
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": ["-y", "slack-mcp-server@latest", "--transport", "stdio"],
      "env": {
        "SLACK_MCP_XOXP_TOKEN": "${env:SLACK_MCP_XOXP_TOKEN}",
        "SLACK_MCP_ADD_MESSAGE_TOOL": "${env:SLACK_MCP_ADD_MESSAGE_TOOL}"
      }
    }
  }
}

Read the full file on GitHub · 370 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 370 lines · 15 tokens per session scan C 731107b36e14

Subscribe to this mod's changes

mcp-manager is a command published in the GitHub repository nicepkg/vsync (57 stars, last pushed 7mo ago), licensed MIT. It adds 15 tokens to every session and 2,606 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (reads agent configuration directories, reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories