AgentSkillsCN

mcp-manager

为 PARA Obsidian 保险库模板生成智能内容。当用户需要创建新笔记(项目、区域、资源、任务、剪贴、每日记录、周报、预约、清单、行程规划、旅行研究),或希望用 AI 生成的内容填充模板各部分,又或是希望在创建模板前明确其所需字段时,这款工具将为您提供贴心的指导与支持。

SKILL.md
--- frontmatter
name: mcp-manager
description: Manage MCP servers - add, list, enable, and disable. Use when users ask about MCP server configuration, want to add new servers, or need to enable/disable existing ones.

MCP Manager

Overview

Manage MCP (Model Context Protocol) servers in Claude Code. This skill helps with:

  • Listing configured MCP servers
  • Adding new MCP servers
  • Enabling disabled servers
  • Disabling servers without removing them

When to Use This Skill

  • User asks "what MCP servers do I have?"
  • User wants to "add an MCP server"
  • User needs to "enable" or "disable" a server
  • User asks about MCP configuration

Quick Reference

TaskCommand
List serversclaude mcp list
Add HTTP serverclaude mcp add --transport http <name> <url>
Add stdio serverclaude mcp add --transport stdio <name> -- <cmd>
Get server detailsclaude mcp get <name>
Remove serverclaude mcp remove <name>
Check status/mcp (in Claude Code)

Scopes

MCP servers can be configured at different scopes:

ScopeFlagDescription
local--scope localPrivate to you, current project only (default)
project--scope projectShared via .mcp.json, version controlled
user--scope userAvailable across all your projects

Enable/Disable via Settings

Servers can be enabled/disabled without removing them:

json
// In ~/.claude/settings.json or .claude/settings.json
{
  "enableAllProjectMcpServers": true,
  "enabledMcpjsonServers": ["github", "sentry"],
  "disabledMcpjsonServers": ["filesystem"]
}

Common Server Examples

GitHub

bash
claude mcp add --transport http github https://api.githubcopilot.com/mcp/

Sentry

bash
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp

PostgreSQL Database

bash
claude mcp add --transport stdio db -- npx -y @bytebase/dbhub \
  --dsn "postgresql://user:pass@localhost:5432/mydb"

Filesystem (Local)

bash
claude mcp add --transport stdio filesystem -- npx -y @anthropics/mcp-filesystem

Troubleshooting

  1. Server not connecting: Check with /mcp command in Claude Code
  2. Permission denied: May need to re-authenticate with /mcp
  3. Changes not applying: Restart Claude Code after config changes