-
Notifications
You must be signed in to change notification settings - Fork 0
Description
What
Add a bash tool to the review-responder workflow allowing gh api graphql so the agent can query real PRRT_ thread node IDs instead of hallucinating them.
Why
The GitHub MCP server v0.32.0 (pinned by gh-aw) doesn't expose thread IDs to agents. The agent fabricates IDs that fail at the GraphQL API. Giving the agent shell access to gh api graphql lets it query real IDs directly.
How
Add to review-responder.md frontmatter:
tools:
github:
toolsets: [default]
bash: ["gh api:*"]Update instructions to tell the agent:
- Use
gh api graphqlto queryreviewThreads { nodes { id isResolved } }for the PR - Use the real PRRT_ IDs from the response in resolve calls
Security Consideration
This gives the agent shell access limited to gh api commands. The agent could potentially make other API calls. Evaluate whether this is acceptable or if a more restrictive pattern is needed.
Temporary Workaround
This is a workaround until gh-aw upgrades the pinned MCP server to v0.33.0+ (github/gh-aw#21130), which would let the agent resolve threads through the MCP tool directly.
Related
- tracking: upgrade gh-aw MCP server to get real thread IDs for review-responder #114 — Thread ID hallucination root cause
- Enhanced PR Rescue: resolve threads + request reviews + rebase behind-main #116 — Rescue workflow thread resolution (complementary approach)
- Upgrade pinned github-mcp-server from v0.32.0 to v0.33.0+ to fix thread resolution github/gh-aw#21130 — Upstream fix