Skip to content

Update github-issues skill to prefer MCP for issue fields#2063

Open
labudis wants to merge 1 commit into
mainfrom
labudis-update-github-issues-skill-mcp
Open

Update github-issues skill to prefer MCP for issue fields#2063
labudis wants to merge 1 commit into
mainfrom
labudis-update-github-issues-skill-mcp

Conversation

@labudis

@labudis labudis commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Updates the github-issues skill to prefer MCP tools for issue field operations, falling back to REST/GraphQL when MCP is unavailable.

Changes

SKILL.md:

  • Renamed "MCP Tools (read operations)" to "MCP Tools (preferred)" with new tools: issue_write, list_issue_fields, set_issue_fields
  • Renamed "CLI / REST API (write operations)" to "CLI / REST API (fallback)"
  • Updated workflow to prefer MCP, fall back to gh api

references/issue-fields.md:

  • Added "MCP Tools (preferred)" section with three approaches:
    • issue_write with inline issue_fields (simplest, uses field names directly)
    • set_issue_fields (advanced, with confidence scoring, rationale, suggestion mode)
    • list_issues with field_filters (query by field values)
  • Demoted REST API to "fallback" section
  • Kept GraphQL section unchanged

Context

The GitHub remote MCP server (github-mcp-server) now supports issue field operations natively. These tools handle ID resolution internally, letting agents work with human-readable field names instead of numeric/node IDs.

Add MCP tools (list_issue_fields, set_issue_fields, issue_write with
issue_fields param, list_issues with field_filters) as the preferred
approach for managing issue fields. REST and GraphQL APIs remain as
fallback when MCP is unavailable.

Key changes:
- SKILL.md: Add new MCP tools to Available Tools table, update workflow
- references/issue-fields.md: Restructure to lead with MCP, demote REST
  to fallback section, add examples for all MCP tool variants

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 19, 2026 15:33
@github-actions github-actions Bot added skills PR touches skills targets-main PR targets main instead of staged labels Jun 19, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This PR targets main, but PRs should target staged.

The main branch is auto-published from staged and should not receive direct PRs.
Please close this PR and re-open it against the staged branch.

You can change the base branch using the Edit button at the top of this PR,
or run: gh pr edit 2063 --base staged

GitHub Advanced Security started work on behalf of labudis June 19, 2026 15:33 View session
GitHub Advanced Security finished work on behalf of labudis June 19, 2026 15:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Not ready to approve

The new MCP documentation contains internal inconsistencies about when ID resolution is handled automatically vs when explicit node IDs are required, which can mislead users of the skill.

Pull request overview

This PR updates the skills/github-issues documentation to treat the GitHub MCP server as the preferred interface for issue field operations, with gh api (REST/GraphQL) positioned as a fallback when MCP is unavailable.

Changes:

  • Updates SKILL.md to list newly-preferred MCP tools for issue creation/updates and issue-field operations, and reframes gh api as fallback.
  • Expands references/issue-fields.md with MCP-first workflows for discovering fields, reading values, setting values, and filtering by field values.
File summaries
File Description
skills/github-issues/SKILL.md Reframes the skill’s tool guidance to prefer MCP and demote gh api to fallback.
skills/github-issues/references/issue-fields.md Adds MCP-first guidance and examples for issue field discovery, setting, and querying.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 3

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

## MCP Tools (preferred)

The REST API is the simplest way to discover fields and set values.
When the GitHub MCP server is available, use MCP tools for all issue field operations. They handle ID resolution internally, so you work with human-readable names.

### Setting fields via set_issue_fields (advanced)

Use the dedicated `set_issue_fields` tool when you need confidence scoring, rationale, or suggestion mode. Requires GraphQL node IDs (get them from `list_issue_fields` response):
Comment on lines +50 to 52
**Prefer MCP** when the `issue_write` tool is available. It supports title, body, type, labels, assignees, milestone, and issue fields in one call. Fall back to `gh api` if MCP is not available.

```bash
@aaronpowell

Copy link
Copy Markdown
Contributor

@labudis are any of the feedback points from Copilot worth including?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skills PR touches skills targets-main PR targets main instead of staged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants