返回市场
原子Git-MCP服务器

原子Git-MCP服务器

作者:kaiyuanxiaobing7 星标更新:2025-07-17

项目介绍

AtomGit MCP 服务器

smithery 徽章

AtomGit MCP 服务器是专门为 AtomGit 开源协作平台实现模型上下文(MCP)服务而设计的。它提供了一系列方法,允许AI管理仓库、问题、拉取请求、分支、标签和其他AtomGit开源协作平台的功能。

安装与使用

从源代码构建

预备条件(如果使用npx开始则跳过此步骤)

  • Node.js v18.20.2 或更高版本
  • pnpm 10.9.0
  • AtomGit 账户的访问令牌,获取方式

克隆仓库

git clone https://atomgit.com/atomgit-open-source-ecosystem/atomgit-mcp-server.git

cd mcp-server-atomgit

构建项目

pnpm build

查看构建位置

pwd

启动Claude可执行文件

标准输入输出模式:

{
  "mcpServers": {
    "command": "node",
    "args": [
      "/home/user/work/mcp-server-atomgit/dist/index.js"
    ],
    "env": {
      "ATOMGIT_PERSONAL_ACCESS_TOKEN": "<your-atomgit-api-key-here>"
    },
  }
}

MCP 主机配置

claude

使用npx启动
{
  "mcpServers": {
    "atomgit-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "atomgit-mcp-server@latest"
      ],
      "env": {
        "ATOMGIT_PERSONAL_ACCESS_TOKEN": "<your-atomgit-api-key-here>"
      }
    }
  }
}

VSCode

使用npx

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "your-atomgit-api-key",
        "description": "AtomGit 个人访问令牌",
        "password": true
      }
    ],
    "servers": {
      "atomgit-mcp-server": {
        "command": "npx",
        "args": [
          "-y",
          "atomgit-mcp-server@latest"
        ],
        "env": {
          "ATOMGIT_PERSONAL_ACCESS_TOKEN": "<your-atomgit-api-key-here>"
        }
      }
    }
  }
}

可用工具

mcp-server-atomgit 服务器提供了多种与 AtomGit 交互的工具,未来将持续改进

工具类别描述
get_user_repositoryrepo列出用户授权的仓库
get_user_repositoriesrepo列出用户授权的所有仓库
get_org_repositoriesrepo列出组织授权的所有仓库
create_issue创建一个仓库的问题
create_issue_comment为特定问题创建评论
delete_issue_commentissue删除问题上的评论
get_issue_commentissue获取特定问题的评论
list_issue_comments列出特定问题的所有评论
list_issues列出仓库中的所有问题
get_issueissue获取特定问题的详细信息
set_assignees为特定问题分配负责人
list_issue_assigneesissue列出某个问题的负责人
check if user is assignable检查某个用户是否可以被指派为问题负责人
create_pull_requestpull创建一个新的变更请求
get_pull_request_detailspull获取变更请求的详细信息
create_pull_request_comment为某个变更请求创建评论
create_pull_request_reply回复特定变更请求上的评论
get_pull_request_commentpull获取某个变更请求评论的详细信息
list_repository_branchesbranch获取分支列表
get_repository_branch_detailsbranch获取分支信息
get_repository_labelslabel获取仓库的所有标签
create_issue_labelslabel为问题添加标签
get_issue_labelslabel获取问题的所有标签
delete_issue_label移除问题上的标签
get_label_by_namelabel根据名称获取仓库中的单个标签

贡献

我们欢迎开源爱好者们的贡献!如果您想为此项目做出贡献,请遵循以下指南:

  1. 访问仓库请翻译成目标语言
  2. 分叉这个仓库
  3. 为特性或错误修复创建一个新的分支。
  4. 修改代码并确保其有良好的文档记录。
  5. 提交一个带有清晰更改描述的拉取请求。

如果您有任何疑问,请提交给我们问题我们将及时审查反馈并积极处理~

Mulan 许可证,第2版

Mulan 许可证,第2版