Add rationale and confidence to closing an issue - #2802
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the granular update_issue_state tool to support “close issue” intent metadata (rationale, confidence, and suggestion semantics) and adds support for closing as a duplicate by resolving an issue number to a database ID for duplicate_issue_id.
Changes:
- Reworks
update_issue_stateinto a standalone tool handler so it can send either the standard REST body or an object-formstatepayload with intent metadata. - Adds new optional parameters:
rationale,confidence,is_suggestion, andduplicate_of(with lookup toduplicate_issue_id). - Updates tests, tool schema snapshot, and feature-flag documentation for the new parameters.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/issues_granular.go | Implements object-form state update payload (intent metadata) and duplicate resolution flow for update_issue_state. |
| pkg/github/granular_tools_test.go | Adds coverage for suggestion mode, duplicate handling, and validation errors for the updated tool behavior. |
| pkg/github/toolsnaps/update_issue_state.snap | Updates the tool snapshot to reflect new schema fields and updated description. |
| docs/feature-flags.md | Documents the new update_issue_state parameters for feature-flagged granular issues tools. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Low
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
Author
kerobbi
approved these changes
Jul 6, 2026
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
github-mcp-server 1.6.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## Highlights ⭐️ * **Tool response filtering**: We added a new `fields` parameter to selected tools in Insiders mode, allowing models to specify which fields they need when they call those tools, thus shrinking tool response size and optimizing context usage. Try it out and let us know if you have any feedback! ## What's Changed * chore(deps): upgrade go-sdk to v1.7.0-pre.1 (new MCP spec) by @SamMorrowDrums in github/github-mcp-server#2787 * build(deps): bump SamMorrowDrums/mcp-server-diff from 3521651bb0d3cc267a23df8d94a2a645556980a4 to 40d992e0a220e5b63378758f9a40d6a8982898d2 by @dependabot[bot] in github/github-mcp-server#2795 * build(deps): bump golang.org/x/net from 0.38.0 to 0.55.0 in the go_modules group across 1 directory by @dependabot[bot] in github/github-mcp-server#2806 * build(deps): bump goreleaser/goreleaser-action from 7.2.2 to 7.2.3 by @dependabot[bot] in github/github-mcp-server#2796 * Add is_suggestion + rationale to update_issue_assignees by @kelsey-myers in github/github-mcp-server#2821 * Add rationale and confidence to closing an issue by @iulia-b in github/github-mcp-server#2802 * Sanitize and lockdown-gate issue_read get_parent title by @zwick in github/github-mcp-server#2780 * Enrich issue_read get with hierarchy relationship signals by @zwick in github/github-mcp-server#2764 * build(deps): bump docker/build-push-action from 7.2.0 to 7.3.0 by @dependabot[bot] in github/github-mcp-server#2828 * chore(deps): bump go-github v87 → v89 and resolve breaking changes by @tommaso-moro in github/github-mcp-server#2840 * Reimplement issue dependencies on go-github v89 REST API by @tommaso-moro in github/github-mcp-server#2839 * Add README links for community resources by @insonmia0126-lovable in github/github-mcp-server#2848 * Add fields param to search_code and get_file_contents by @tommaso-moro in github/github-mcp-server#2775 * Add fields param to six more list/search tools by @tommaso-moro in github/github-mcp-server#2810 * MCP: name-based resolution for Projects fields by @veralizeth in github/github-mcp-server#2760 * Enable fields param in Insiders mode by @tommaso-moro in github/github-mcp-server#2890 ## New Contributors * @insonmia0126-lovable made their first contribution in github/github-mcp-server#2848 * @veralizeth made their first contribution in github/github-mcp-server#2760 **Full Changelog**: https://github.com/github/github-mcp-server/compare/v1.5.0...v1.6.0</pre> <p>View the full release notes at <a href="https://github.com/github/github-mcp-server/releases/tag/v1.6.0">https://github.com/github/github-mcp-server/releases/tag/v1.6.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!14323
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Summary
Similar to fields and type, this PR adds the ability of suggesting a "close issue" intent, with confidence, rationale, and support for duplicate issue .
Why
Fixes https://github.com/github/plan-track-agentic-toolkit/issues/343
What changed
update_issue_statetool as a standalone function (off the issueUpdateTool helper)MCP impact
Prompts tested (tool changes only)
Security / limits
Tool renaming
deprecated_tool_aliases.goNote: if you're renaming tools, you must add the tool aliases. For more information on how to do so, please refer to the official docs.
Lint & tests
./script/lint./script/testDocs