LearnNewsExamplesServices
Frontmatter
id8318
titleMCP: Optimize GitHub Workflow Tool Count
stateClosed
labels
airefactoring
assigneestobiu
createdAtJan 4, 2026, 5:24 PM
updatedAtJan 4, 2026, 6:15 PM
githubUrlhttps://github.com/neomjs/neo/issues/8318
authortobiu
commentsCount1
parentIssue8315
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 4, 2026, 6:15 PM

MCP: Optimize GitHub Workflow Tool Count

tobiu
tobiu commented on Jan 4, 2026, 5:24 PM

Part of Epic #8315.

  1. Consolidate assign_issue and unassign_issue into manage_issue_assignees (action: 'add' | 'remove').
  2. Consolidate add_labels and remove_labels into manage_issue_labels (action: 'add' | 'remove').
  3. Consolidate create_comment and update_comment into manage_issue_comment (action: 'create' | 'update').
tobiu cross-referenced by #8317 on Jan 4, 2026, 5:38 PM
tobiu
tobiu Jan 4, 2026, 6:15 PM

Input from Gemini 2.5 pro:

✦ I have successfully completed the tool consolidation tasks for this issue.

Changes Implemented:

  1. Tool Consolidation:
    • assign_issue + unassign_issue -> manage_issue_assignees
    • add_labels + remove_labels -> manage_issue_labels
    • create_comment + update_comment -> manage_issue_comment
  2. API Refinement:
    • Updated openapi.yaml with the new endpoints and detailed documentation.
    • Removed deprecated endpoints.
  3. Code Refactoring:
    • Updated IssueService.mjs to handle the consolidated logic.
    • Moved updateComment from PullRequestService.mjs to IssueService.mjs to unify comment management.
    • Updated toolService.mjs mappings.

Status: This refactoring reduces the tool count and simplifies the API surface while maintaining full functionality. The changes have been committed.

Ready to close this issue.