内容
# MCP Cursor Project
该项目演示了模型上下文协议(Model Context Protocol,MCP)与 Cursor IDE 的集成。
## 特性
- GitHub MCP Server 集成
- 自定义 MCP 命令和工具
- Cursor IDE 扩展
## 设置
1. 安装依赖:
```bash
npm install
```
2. 设置你的 GitHub 个人访问令牌:
```bash
export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here
```
3. 启动 MCP 服务器:
```bash
npm start
```
## 配置
该项目在 `.cursor/mcp.json` 中使用以下配置:
```json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"cross-env",
"GITHUB_PERSONAL_ACCESS_TOKEN=${your_token}",
"npx",
"-y",
"@modelcontextprotocol/server-github"
]
}
}
}
```
## 许可证
ISC