Add GitHub Projects and Issues Management Tools to MCP Server #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements comprehensive GitHub Projects and Issues Management tools for the MCP server, enabling intelligent and automated project planning, backlog grooming, and issue lifecycle management through context-aware automation.
🚀 Key Features Added
GitHub Projects v2 Integration (GraphQL)
list_projects_v2
: List Projects v2 for organizations or users with full metadataget_project_v2
: Get detailed project information including custom fieldsget_issue_node_id
: Convert issue numbers to node IDs required for Projects v2 operationsadd_issue_to_project_v2
: Add issues to Projects v2 for automated workflow managementEnhanced Issue Management
list_milestones
: List repository milestones with state filtering (open/closed/all)create_milestone
: Create milestones with optional descriptions and due dates🔧 Technical Implementation
New Toolset
projects
toolset with proper read/write tool categorizationissues
toolset with milestone management toolsCore Changes
pkg/github/projects.go
: New file implementing Projects v2 tools using GraphQL APIpkg/github/issues.go
: Added milestone management functionspkg/github/server.go
: AddedRequiredInt64
helper for parameter validationpkg/github/tools.go
: Integrated new toolsets into the main toolset groupQuality Assurance
💡 Usage Examples
🎯 Benefits
This implementation enables the core functionality requested in the issue: natural language and model-driven project/issue interactions, programmatic control over GitHub Projects, and automated issue lifecycle management.
Fixes #1.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.