AtomGit MCP 服务器是专门为 AtomGit 开源协作平台实现模型上下文(MCP)服务而设计的。它提供了一系列方法,允许AI管理仓库、问题、拉取请求、分支、标签和其他AtomGit开源协作平台的功能。
git clone https://atomgit.com/atomgit-open-source-ecosystem/atomgit-mcp-server.git
cd mcp-server-atomgit
pnpm build
pwd
标准输入输出模式:
{
"mcpServers": {
"command": "node",
"args": [
"/home/user/work/mcp-server-atomgit/dist/index.js"
],
"env": {
"ATOMGIT_PERSONAL_ACCESS_TOKEN": "<your-atomgit-api-key-here>"
},
}
}
{
"mcpServers": {
"atomgit-mcp-server": {
"command": "npx",
"args": [
"-y",
"atomgit-mcp-server@latest"
],
"env": {
"ATOMGIT_PERSONAL_ACCESS_TOKEN": "<your-atomgit-api-key-here>"
}
}
}
}
使用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_repository | repo | 列出用户授权的仓库 |
| get_user_repositories | repo | 列出用户授权的所有仓库 |
| get_org_repositories | repo | 列出组织授权的所有仓库 |
| create_issue | 创建一个仓库的问题 | |
| create_issue_comment | 为特定问题创建评论 | |
| delete_issue_comment | issue | 删除问题上的评论 |
| get_issue_comment | issue | 获取特定问题的评论 |
| list_issue_comments | 列出特定问题的所有评论 | |
| list_issues | 列出仓库中的所有问题 | |
| get_issue | issue | 获取特定问题的详细信息 |
| set_assignees | 为特定问题分配负责人 | |
| list_issue_assignees | issue | 列出某个问题的负责人 |
| check if user is assignable | 检查某个用户是否可以被指派为问题负责人 | |
| create_pull_request | pull | 创建一个新的变更请求 |
| get_pull_request_details | pull | 获取变更请求的详细信息 |
| create_pull_request_comment | 为某个变更请求创建评论 | |
| create_pull_request_reply | 回复特定变更请求上的评论 | |
| get_pull_request_comment | pull | 获取某个变更请求评论的详细信息 |
| list_repository_branches | branch | 获取分支列表 |
| get_repository_branch_details | branch | 获取分支信息 |
| get_repository_labels | label | 获取仓库的所有标签 |
| create_issue_labels | label | 为问题添加标签 |
| get_issue_labels | label | 获取问题的所有标签 |
| delete_issue_label | 移除问题上的标签 | |
| get_label_by_name | label | 根据名称获取仓库中的单个标签 |
我们欢迎开源爱好者们的贡献!如果您想为此项目做出贡献,请遵循以下指南:
如果您有任何疑问,请提交给我们问题我们将及时审查反馈并积极处理~