Skip to main content

mcp-setup

Help users configure MCP (Model Context Protocol) servers for Claude Code and other AI platforms.

来源信息

仓库
miles990/skillpkg
最近来源活动
2026年1月12日 07:09
检测到的 SKILL.md 语言
英语
星标
0
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
23 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
mcp-setup
description
Help users configure MCP (Model Context Protocol) servers for Claude Code and other AI platforms.
version
0.4.0
# MCP Server Configuration Help users install and configure MCP (Model Context Protocol) servers for AI platforms. ## Configuration File MCP servers are configured in `~/.claude.json`: ```json { "mcpServers": { "server-name": { "command": "npx", "args": ["-y", "package-name"], "env": { "API_KEY": "your-api-key" } } } } ``` ## Popular MCP Servers ### 1. skillpkg (Skills Manager) ```json { "mcpServers": { "skillpkg": { "command": "npx", "args": ["-y", "skillpkg-mcp-server"] } } } ``` Tools: `list_skills`, `install_skill`, `search_skills`, `load_skill`, `sync_skills` ### 2. Context7 (Documentation) ```json { "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@context7/mcp-server"] } } } ``` Tools: `resolve-library-id`, `query-docs` ### 3. Filesystem ```json { "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-filesystem", "/path/to/allowed/dir"] } } } ``` ### 4. GitHub ```json { "mcpServers": { "github": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-github"], "env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" } } } } ``` ### 5. Brave Search ```json { "mcpServers": { "brave-search": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-brave-search"], "env": { "BRAVE_API_KEY": "${BRAVE_API_KEY}" } } } } ``` ## Quick Setup Commands ```bash # View current config cat ~/.claude.json # Edit config (macOS) open -e ~/.claude.json # Edit config (with VS Code) code ~/.claude.json # Validate JSON cat ~/.claude.json | python3 -m json.tool ``` ## Adding a New MCP Server 1. Find the package name (usually on npm or GitHub) 2. Add entry to `~/.claude.json` under `mcpServers` 3. Restart Claude Code to load the new server ## Common Issues ### Server Not Loading - Check JSON syntax is valid - Verify package name is correct - Check if environment variables are set ### Permission Errors - Ensure `~/.claude.json` is readable - Check file permissions: `chmod 644 ~/.claude.json` ### Environment Variables Use `${VAR_NAME}` syntax in config: ```json { "env": { "API_KEY": "${MY_API_KEY}" } } ``` Set in shell: ```bash export MY_API_KEY="your-key" ``` ## Full Example Config ```json { "mcpServers": { "skillpkg": { "command": "npx", "args": ["-y", "skillpkg-mcp-server"] }, "context7": { "command": "npx", "args": ["-y", "@context7/mcp-server"] }, "github": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-github"], "env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" } } } } ```
在 GitHub 查看