mcp-configuration
MCP服务器配置模板和设置脚本。在配置MCP服务器、设置MCP环境、管理MCP配置、添加MCP服务器或用户提及MCP设置、MCP配置、服务器环境或MCP安装时使用。
📖 中文导读:MCP服务器配置模板和设置脚本。在配置MCP服务器、设置MCP环境、管理MCP配置、添加MCP服务器或用户提及MCP设置、MCP配置、服务器环境或MCP安装时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: MCP Configuration description: MCP server configuration templates and setup scripts. Use when configuring MCP servers, setting up MCP environment, managing MCP configs, adding MCP servers, or when user mentions MCP setup, MCP configuration, server environment, or MCP installation. allowed-tools: Read, Write, Bash
MCP Configuration
This skill provides MCP server configuration templates, setup scripts, and environment management helpers for Claude Code MCP integration.
What This Skill Provides
1. Configuration Templates
.mcp.jsontemplate for MCP server definitions- Server configuration examples (FastMCP, Node.js, Python)
- API key management patterns
2. Setup Scripts
setup-mcp-server.sh- Configure MCP server in .mcp.jsonvalidate-mcp-config.sh- Validate MCP configurationlist-mcp-servers.sh- List available MCP servers
3. Server Type Templates
- stdio servers (local process)
- HTTP servers (remote API)
- SSE servers (server-sent events)
Instructions
Adding MCP Server Configuration
When user wants to configure MCP servers:
- Check if .mcp.json exists in project
- Use template to create/update configuration
- Add server definition with type, command, args
- Configure environment variables if needed
Example structure:
- mcpServers object
- Server name as key
- type: "stdio" or "http"
- command and args for stdio
- url for http servers
Validating Configuration
Execute validation script:
!{bash plugins/01-core/skills/mcp-configuration/scripts/validate-mcp-config.sh .mcp.json}
Checks for:
- Valid JSON format
- Required fields present
- Correct server type
- Valid command paths
Environment Setup
For MCP servers requiring API keys:
- Create .env file (if not exists)
- Add API key variables
- Reference in MCP server config
- Ensure .env is in .gitignore
Configuration Examples
FastMCP Server (stdio):
- type: stdio
- command: python
- args: ["-m", "server_name"]
HTTP Server:
- type: http
- url: https://api.example.com
With Environment Variables:
- env: { API_KEY: "${API_KEY}" }
- Reads from .env file
Success Criteria
- ✅ Valid .mcp.json configuration
- ✅ Server definitions are correct
- ✅ Environment variables configured
- ✅ API keys secured in .env
- ✅ Configuration validated
Plugin: 01-core Skill Type: Generator + Validator Auto-invocation: Yes (via description matching)