Back to MCP directory
publicPublicdnsLocal runtime

cursor_mcpserver

Cursor IDE的GitHub服务器集成项目,通过MCP协议实现与GitHub仓库的无缝交互

article

README

🚀 游标 MCP 服务器

游标 MCP 服务器是用于 Cursor IDE 的 GitHub 服务器集成工具,借助多云协议(MCP),让开发者能在 Cursor IDE 中便捷地使用 GitHub 服务。

🚀 快速开始

在使用游标 MCP 服务器之前,请确保完成以下步骤:

  1. 确保已安装 Cursor IDE。
  2. 在 MCP 配置文件中配置您的 GitHub 凭据。
  3. 设置具有适当权限的个人访问令牌 (PAT)。

✨ 主要特性

  • GitHub API 集成:实现与 GitHub API 的深度集成。
  • 仓库管理:可直接在 IDE 中管理 GitHub 仓库。
  • 问题跟踪:方便跟踪 GitHub 仓库中的问题。
  • 拉取请求处理:能够处理 GitHub 上的拉取请求。
  • 文件操作:支持在 IDE 中对 GitHub 仓库的文件进行操作。
  • 代码搜索能力:可在 GitHub 仓库中进行代码搜索。

📦 安装指南

MCP 配置应放在 ~/.cursor/mcp.json 中,示例配置如下:

{
  "github": {
    "server": {
      "url": "https://api.github.com",
      "token": "your-github-pat",
      "username": "your-github-username"
    }
  }
}

💻 使用示例

基础用法

  • 使用 Cursor IDE 的集成命令与 GitHub 交互。
  • 直接从 IDE 管理仓库、问题和拉取请求。
  • 在您的 GitHub 仓库中执行代码搜索。
  • 无缝处理文件操作。

📄 许可证

该项目采用 MIT 许可证,详情请参阅 LICENSE 文件。

🤝 贡献

欢迎贡献!请随意提交拉取请求。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client