Skip to content

feat: Adds complete label management functionality #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

clafollett
Copy link

Description

This PR adds comprehensive label management functionality to the GitHub MCP server, enabling users to effectively manage repository labels directly through the MCP tools.

Features Added

This implementation provides a complete set of tools for label management:

  • List Labels: Retrieve all labels in a repository
  • Get Label: Fetch details of a specific label
  • Create Label: Create new repository labels with custom names, colors, and descriptions
  • Update Label: Modify existing labels (name, color, description)
  • Delete Label: Remove labels from a repository
  • List Labels for Issue: Retrieve all labels applied to a specific issue
  • Add Labels to Issue: Apply multiple labels to an issue
  • Remove Label from Issue: Remove a label from an issue

Implementation Details

  • Added proper parameter validation for all label operations
  • Implemented comprehensive test coverage with various test cases
  • Ensured compatibility with existing GitHub MCP server architecture
  • Added appropriate documentation for all tools

Testing

All functionality has been thoroughly tested with both unit tests and manual verification against the GitHub API.

Notes for Reviewers

  • The implementation follows the same patterns used in other GitHub MCP server tools
  • Error handling follows established conventions in the codebase
  • All tests are passing in both the test suite and with real API calls

Closes: #312

clafollett and others added 3 commits April 18, 2025 18:46
Add comprehensive label management capabilities to GitHub MCP server:
- Add list_labels tool to retrieve all repository labels
- Add get_label tool to fetch a specific label's details
- Add create_label tool to create new repository labels
- Add update_label tool for modifying existing labels
- Add delete_label tool for removing labels
- Add list_labels_for_issue tool for issue label retrieval
- Add add_labels_to_issue tool for applying labels to issues
- Add remove_label_from_issue tool for removing labels from issues
- Include comprehensive test coverage for all label operations
Add complete label management functionality
@clafollett clafollett requested a review from a team as a code owner April 18, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add complete label management functionality to GitHub MCP server
1 participant