本指南将教你如何在主流开发环境中使用本项目收录的 MCP Servers 和 Agent Skills。
Claude Desktop 原生支持 MCP 协议,配置最为简单。
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/yourname/Desktop"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here"
}
}
}
}修改配置后需重启 Claude Desktop。
Cursor 作为 AI 驱动的编辑器,对 MCP 原生支持也越来越完善。
- 打开 Settings (快捷键
Cmd/Ctrl + ,)。 - 找到 Features -> MCP。
- 点击 Add New MCP Server。
- 填写 Name (例如
Filesystem) 和 Command (例如npx -y @modelcontextprotocol/server-filesystem /path/to/allow)。
对于非 MCP 类的 Prompt 型 Skills(如 "Frontend Design"),推荐使用 .cursorrules 文件:
- 在项目根目录创建
.cursorrules文件。 - 将 Skill 的核心 Prompt 指令粘贴进去。
- Cursor 的 AI 现在就会遵循这套规则进行编码。
Windsurf 是基于 Cascade 引擎的 IDE,对上下文感知非常强。
Windsurf 目前通过配置文件管理 MCP:
- 位置:
~/.codeium/windsurf/mcp_config.json
内容格式与 Claude Desktop 完全一致:
{
"mcpServers": {
"sqlite": {
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/path/to/db.sqlite"]
}
}
}类似于 Cursor,你可以在项目根目录创建 .windsurfrules,将特定的 Coding Style 或 Agent 角色设定写入其中。
如果你使用原生 VS Code,推荐安装 Cline (前身是 Claude Dev) 插件。
- 安装 Cline 插件。
- 打开 Cline 侧边栏,点击设置图标。
- 找到 MCP Servers 选项卡。
- Cline 会自动读取 Claude Desktop 的配置文件 (
claude_desktop_config.json)。 - 你也可以点击 "Edit MCP Servers" 手动添加新的 JSON 配置。
在本项目导航站中,找到对应的 MCP Skill,点击 Repo 链接。通常 README 中会有 npx 或 docker 启动命令。
对于像 "Frontend Design" 或 "System Prompt" 这种技能,它们不是可执行的 Server。 使用方法:
- 复制 Skill 的核心 Prompt 内容。
- 粘贴到你的 IDE 项目规则文件(
.cursorrules,.windsurfrules)中,或者在对话开始时直接发给 AI。
Antigravity 采用文件驱动的原生 Skills 系统,无需额外配置 Server,只需定义文档。
在你的工作区目录中(例如 ~/skills-map),Antigravity 会自动扫描包含 SKILL.md 的文件夹。推荐结构:
skills/
├── frontend-design/
│ └── SKILL.md <-- 核心指令文件
├── mcp-builder/
│ ├── SKILL.md
│ └── examples/ <-- 支持附带资源文件
└── ...
每个 SKILL.md 必须包含 YAML Frontmatter:
---
name: frontend-design
description: 简要描述这个 Skill 的能力
---
详细的 Prompt 指令、规范和步骤...Antigravity 会智能感知任务上下文。如果任务匹配某个 Skill 的描述,它会自动加载并遵循 SKILL.md 中的指令。你也可以显式要求:"使用 frontend-design skill 帮我重构页面"。