mcp-github-project-manager
GitHub 项目管理器 MCP 服务器
模型上下文协议 (MCP) 服务器实现,通过标准化工具和资源提供 GitHub 项目功能。该服务器使 LLM 客户端能够通过 MCP 接口以编程方式管理 GitHub 项目。
概述
该服务器实现了模型上下文协议 (MCP) ,以便向 LLM 客户端公开 GitHub 项目功能。它提供了通过 GitHub 的 GraphQL API 管理项目、里程碑、冲刺和指标的工具,同时根据 MCP 规范维护状态并处理错误。
Related MCP server: GitHub Analyzer Pro MCP Server
主要特点
项目管理
创建和管理 GitHub 项目 (v2)
处理项目设置和配置
管理项目可见性和访问权限
项目资源
问题和里程碑管理
Sprint 规划和跟踪
自定义字段和视图
资源版本控制和锁定
MCP 实现
完全符合 MCP 规范
通过 Zod 验证实现标准化工具定义
资源状态管理
渐进式响应处理
全面的错误处理
GitHub 集成
GraphQL API 集成分页支持
智能速率限制处理
乐观并发
Webhook 支持(计划中)
安装
# Install dependencies
npm install
# or
pnpm install
# Set up environment variables
cp .env.example .env
# Edit .env with your GitHub token and details配置
所需的环境变量:
GITHUB_TOKEN=your_github_token
GITHUB_OWNER=repository_owner
GITHUB_REPO=repository_nameGitHub 令牌需要以下权限:
repo(完整存储库访问)project(项目访问)write:org(组织访问)
用法
# Start the MCP server
npm start
# Run tests
npm test
npm run test:e2e请参阅用户指南以了解详细的使用说明。
建筑学
该服务器遵循清晰架构原则,具有不同的层次:
领域层:核心实体、存储库接口和 Zod 模式
基础设施层:GitHub API 集成和实现
服务层:业务逻辑协调
MCP 层:工具定义和请求处理
有关详细的架构文档,请参阅ARCHITECTURE.md 。
当前状态
核心功能
特征 | 地位 | 笔记 |
项目创建 | ✅ 完成 | 全面支持 v2 项目 |
里程碑管理 | ✅ 完成 | 已实施 CRUD 操作 |
Sprint 计划 | ✅ 完成 | 包括指标跟踪 |
问题管理 | ✅ 完成 | 支持自定义字段 |
资源版本控制 | ✅ 完成 | 使用乐观锁定和模式验证 |
Webhook 集成 | 📅 已计划 | 实时更新 |
MCP 实现
成分 | 地位 | 笔记 |
工具定义 | ✅ 完成 | 所有核心工具均通过 Zod 验证实现 |
资源管理 | ✅ 完成 | 使用乐观锁定和关系跟踪 |
响应处理 | ✅ 完成 | 具有多种内容类型的丰富内容格式 |
错误处理 | ✅ 完成 | 全面错误映射到 MCP 错误代码 |
状态管理 | ✅ 完成 | 具有冲突解决和速率限制 |
最近的改进
增强资源系统:
为所有资源类型添加了 Zod 模式验证
实施资源关系跟踪
创建集中式 ResourceFactory,实现一致的资源访问
改进的 GitHub API 集成:
增加了具有自动节流功能的智能速率限制
实现了对 REST 和 GraphQL API 的分页支持
增强特定错误类型的错误处理
先进的工具系统:
创建带有 Zod 验证的工具定义注册表
实施标准化工具响应格式
为所有工具添加了基于示例的文档
丰富的响应格式:
增加了对多种内容类型(JSON、Markdown、HTML、文本)的支持
实施长期运行操作的进度更新
增加了对大型结果集的分页支持
已确定的功能差距
尽管最近有所改进,但仍然存在以下功能差距,并需优先考虑未来的发展:
持久缓存策略:
虽然 ResourceCache 提供了内存缓存,但它在服务器重启后缺乏持久性
多实例部署没有分布式缓存
缺少内存管理的缓存驱逐策略
实时事件处理:
没有集成 webhook 来实现 GitHub 的实时更新
缺少基于事件的客户端订阅系统
缺乏对流更新的服务器发送事件 (SSE) 支持
高级 GitHub 项目 v2 功能:
对自定义字段类型和验证的支持有限
与 GitHub 较新的 Projects v2 字段类型的集成不完整
缺少自动化规则管理
性能优化:
没有针对相关资源的查询批处理
缺少频繁访问资源的后台刷新
相关资源预取不完整
数据可视化和报告:
没有内置的指标可视化生成器
缺少报告生成功能
有限的时间序列数据分析
有关详细的实施状态,请参阅docs/mcp/gaps-analysis.md 。
文档
交互式文档
要以交互方式探索 API,请在浏览器中打开API Explorer 。
发展
测试
# Unit tests
npm test
# Integration tests
npm run test:integration
# End-to-end tests
npm run test:e2e代码质量
# Lint code
npm run lint
# Type check
npm run type-check
# Format code
npm run format贡献
欢迎大家为 GitHub 项目管理器 MCP 服务器做出贡献!详情请参阅我们的贡献指南:
执照
Available Tools
21 toolsagent_manageAgent ManagementCDestructive
Agent management: list/deregister agents, activity, work products, budgets (warningFraction), stale reclaim, smart assignment, workload rebalancing, convergence, and registry cleanup. Use the action field to select the operation.
Inputs: action (required), role, branch, status, +26 more.
agent_workAgent WorkC
Agent work operations: register agents, checkout/release/complete tasks, send heartbeats, submit/check review state, validate work products, and get handoff context. Use the action field to select the operation.
Inputs: action (required), name, role, view, +27 more.
ai_analyzeAI AnalysisC
AI-powered analysis: enrich issues (single/bulk), triage issues, schedule triaging, suggest labels, detect duplicates, find related issues. Use the action field to select the operation.
Inputs: action (required), config, agentId, issueId, +17 more.
ai_generateAI GenerationC
AI-powered generation: generate/enhance/parse PRDs, add features, get next tasks, analyze complexity, expand tasks, create traceability matrices. Use the action field to select the operation.
Inputs: action (required), limit, tasks, author, +67 more.
ai_planAI PlanningC
AI-powered planning: calculate capacity, prioritize backlog, assess risk, suggest sprint composition, generate roadmaps and visualizations. Use the action field to select the operation.
Inputs: action (required), agentId, roadmap, capacity, +19 more.
analyticsAnalyticsBRead-onlyIdempotent
Read-only project analytics: sprint velocity and burndown, cycle time, throughput, and a project summary. Use the action field to select the report.
Inputs: action (required), lastN, bucket, sprintId, +2 more.
discover_toolsDiscover ToolsARead-onlyIdempotent
Discover available compound tools, their actions, and parameters. Always available regardless of group filter.
Inputs: query, domain.
manage_automationManage AutomationBDestructive
Manage Project Automations: list, get and delete the automation workflows of a GitHub project. Use the action field to select the operation.
Inputs: action (required), projectId, workflowId.
manage_branchesManage BranchesCDestructive
Manage GitHub Branch Protection: get, update, and delete a branch's protection rules; list repository branches. Use the action field to select the operation.
Inputs: action (required), page, repo, owner, +14 more.
manage_eventsManage EventsC
Manage Events: subscribe to project events, get recent events, replay events. Use the action field to select the operation.
Inputs: action (required), limit, filters, clientId, +8 more.
manage_issuesManage IssuesBDestructive
Manage GitHub Issues: create, list, get, update issues; manage comments and drafts; search with advanced filters; manage sub-issues. Use the action field to select the operation.
Inputs: action (required), body, repo, sort, +32 more.
manage_iterationsManage IterationsC
Manage Project Iterations: get configuration, current iteration, items; find by date; assign items. Use the action field to select the operation.
Inputs: action (required), date, limit, itemIds, +3 more.
manage_labelsManage LabelsB
Manage repository Labels: create and list labels. Use the action field to select the operation.
Inputs: action (required), name, color, limit, +1 more.
manage_milestonesManage MilestonesCDestructive
Manage Milestones: create, list, update, delete milestones; get metrics; find overdue and upcoming milestones. Use the action field to select the operation.
Inputs: action (required), sort, limit, state, +9 more.
manage_projectManage ProjectsCDestructive
Manage GitHub Projects (v2): create, list, get, update, delete projects; manage readme, fields, views, items; handle templates and link to repos/teams. Use the action field to select the operation.
Inputs: action (required), org, name, repo, +30 more.
manage_prsManage Pull RequestsC
Manage Pull Requests: create, get, list, update, merge PRs; list and create reviews. Use the action field to select the operation.
Inputs: action (required), base, body, head, +10 more.
manage_releasesManage ReleasesBDestructive
Manage GitHub Releases: create, list, get, update, delete releases; get the latest release. Use the action field to select the operation.
Inputs: action (required), body, name, repo, +7 more.
manage_sprintsManage SprintsBDestructive
Manage Sprints: create, list, update, delete sprints (delete requires confirm: true); get current sprint; add/remove issues; get metrics and plan. Use the action field to select the operation.
Inputs: action (required), title, sprint, status, +9 more.
manage_status_updatesManage Status UpdatesC
Manage project Status Updates: create, list, and get status updates. Use the action field to select the operation.
Inputs: action (required), body, after, first, +6 more.
manage_workflowsManage WorkflowsADestructive
Manage GitHub Actions Workflows: list workflows, trigger dispatch events, inspect run status and logs, list runs, and cancel runs. Use the action field to select the operation.
Inputs: action (required), ref, page, repo, +7 more.
systemSystemCIdempotent
System operations: health check and project field setup. Use the action field to select the operation.
Inputs: action (required), projectId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools are cleanly separated by GitHub resource or domain: issues, PRs, releases, workflows, milestones, sprints, labels, and analytics each have a distinct target. However, there is meaningful overlap between agent_manage and agent_work, and between ai_plan, ai_generate, ai_analyze, and analytics, which could cause misselection for planning/analysis tasks.
The naming is consistently snake_case and mostly follows predictable prefixes such as manage_*, ai_*, and agent_*. Minor deviations exist: some names are noun-only (analytics, system), and singular/plural patterns vary (manage_project vs manage_issues, manage_prs abbreviation).
At 21 tools, the server is on the heavy side for an MCP surface, though the use of compound action-based tools mitigates some complexity. The broad project-management scope justifies many categories, but the count is still borderline and could overwhelm agents choosing among similar AI/agent tools.
The surface covers a broad GitHub project-management lifecycle: projects, issues, PRs, milestones, sprints, iterations, releases, workflows, branch protection, analytics, AI assistance, and agent coordination. Some minor gaps remain, such as limited label lifecycle operations and incomplete comment/review management, but core workflows are well covered.
Maintenance
Related MCP Connectors
Tasks, sprints, releases and docs for engineering teams with AI coding agents.
A MCP server built for developers enabling Git based project management with project and personal…
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Related MCP Servers
- PythonMIT
- FlicenseNot gradedqualityDmaintenanceA production-ready server featuring over 28 tools for comprehensive GitHub analysis, including repository metadata, issue tracking, and workflow monitoring. It enables users to search repositories, analyze contributor activity, and inspect codebase health through natural language.1-
- FlicenseNot gradedqualityDmaintenanceEnables managing GitHub Projects v2 boards through Claude Code and Codex, including project and item administration, field updates, sprint boards, epic rollups, and desired-state planning.-
- AlicenseNot gradedqualityAmaintenanceTurns GitHub Projects v2 into an agentic project-management platform where AI coding agents can register, claim and track tasks, coordinate via heartbeats, review work, and stay within token budgets. It also enables AI-powered PRD generation, sprint planning, issue triage, roadmap creation, and PRD-to-issue materialization using GitHub-native storage.208 npmMIT