Mcp manager

From rysweet/amplihack · View interactive version

Mcp manager is an AI agent skill from the GitHub repository rysweet/amplihack. Conversational interface for managing MCP (Model Context Protocol) server configurations in Claude Code

How to use this skill

Skill file

MCP Manager Skill

Overview

Natural language interface to MCP Manager CLI tool for managing Model Context Protocol server configurations. Users interact conversationally: "enable the filesystem MCP", "add a database server", "show me all my MCPs".

Activation

Activates on MCP keywords within 3-message window or explicit invocation: /mcp-manager

Commands

1. List MCPs

Display all configured MCP servers with status.

2. Enable MCP

Activate a disabled MCP server.

3. Disable MCP

Deactivate an MCP server without removing it. Requires confirmation.

4. Add MCP

Add new MCP server interactively (collects name, command, args, env vars).

5. Remove MCP

Delete MCP server configuration completely. Requires confirmation with warning.

6. Show MCP

Display detailed information for specific MCP server.

7. Validate MCPs

Check all MCP configurations for errors.

8. Export MCPs

Export configurations to JSON file for backup.

9. Import MCPs

Import configurations from JSON file.

Usage Examples

Example 1: List and Enable

User: "List all my MCPs"

[Executes: cd .claude/scenarios && python3 -m mcp-manager.cli list]

Response:

"You have 3 MCP servers configured:

✓ filesystem (enabled) - Local filesystem access

✓ github (enabled) - GitHub API integration

✗ puppeteer (disabled) - Browser automation"

Follow-up: "Turn on puppeteer"

[Executes: python3 -m mcp-manager.cli enable puppeteer]

"✓ Successfully enabled 'puppeteer' MCP server."

Example 2: Add New Server

User: "Add a new MCP for database access"

Interactive Collection:

  1. Name: "postgres-local"
  2. Command: "node /opt/mcp-servers/postgres/index.js"
  3. Args: "--port 5432 --host localhost"
  4. Env: "DATABASE_URL=postgresql://localhost:5432/mydb"

[Executes: python3 -m mcp-manager.cli add postgres-local "node /opt/mcp-servers/postgres/index.js" --port 5432 --host localhost --env "DATABASE_URL=postgresql://localhost:5432/mydb"]

"✓ Successfully added 'postgres-local' MCP server.

Server is currently disabled. Enable with: 'enable postgres-local'"

Example 3: Remove Server

User: "Remove the puppeteer MCP"

Confirmation:

"⚠️ WARNING: You're about to remove 'puppeteer' MCP server. This will delete the configuration completely. This action cannot be undone. Are you sure? (yes/no)"

[User confirms: "yes"]

[Executes: python3 -m mcp-manager.cli remove puppeteer]

"✓ Successfully removed 'puppeteer' MCP server."

Tool Invocation

All commands execute from ~/.amplihack/.claude/scenarios/ directory:

cd .claude/scenarios && python3 -m mcp-manager.cli <command> [args]

Key Commands:

Output Handling:

Error Handling

Common Errors:

  1. CLI Not Found: Offer installation instructions (see README)
  2. Server Not Found: List available servers, suggest alternatives
  3. Server Already Exists: Suggest show/remove/rename
  4. Permission Denied: Check file/directory permissions
  5. Malformed settings.json: Validate JSON, offer backup restore
  6. Invalid Command: Show common command patterns

For detailed error scenarios and troubleshooting, see ~/.amplihack/.claude/scenarios/mcp-manager/README.md

Best Practices

See Also


Version: 1.0.0 | Updated: 2025-11-24 | Maintainer: amplihack team

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.