Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,15 @@ The following sets of tools are available:
| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/people-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/people-light.png"><img src="pkg/octicons/icons/people-light.png" width="20" height="20" alt="people"></picture> | `users` | GitHub User related tools |
<!-- END AUTOMATED TOOLSETS -->

The `issues` toolset supports planning statuses. `issue_read` returns the
current status, `search_issues` documents the `status:` qualifier, and issue
creation accepts Backlog, Todo, In progress, or In review. The
`update_issue_status` tool also accepts Done, Not planned, and Duplicate;
these closing statuses require `confirm_close: true` after the user confirms.
Duplicate requires the canonical issue number in `duplicate_of`. The
`issue_write` MCP App creation form can set an initial status or use the
default, Backlog.

### Additional Toolsets in Remote GitHub MCP Server

| Toolset | Description |
Expand Down Expand Up @@ -1099,6 +1108,7 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat
- `repo`: Repository name (string, required)
- `state`: New state (string, optional)
- `state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
- `status`: Initial planning status (create only). Only open statuses are supported. Backlog is backlog; Todo is planned; In progress and In review are started. Omit to use the default status, Backlog. (string, optional)
- `title`: Issue title (string, optional)
- `type`: Type of this issue. For updates, pass null to remove the current type. Only use if issue types are enabled for this repository. Use list_issue_types to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string | null, optional)

Expand Down Expand Up @@ -1161,6 +1171,15 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat
- `owner`: Repository owner (string, required)
- `repo`: Repository name (string, required)

- **update_issue_status** - Update Issue Status
- **OAuth Challenge Scopes**: `repo`
- `confirm_close`: Must be true for Done, Not planned or Duplicate. Set only after the user confirms closing the issue. (boolean, optional)
- `duplicate_of`: The canonical issue number. Required only for Duplicate. (number, optional)
- `issue_number`: The issue number to update (number, required)
- `owner`: Repository owner (username or organization) (string, required)
- `repo`: Repository name (string, required)
- `status`: The planning status to assign. (string, required)

</details>

<details>
Expand Down
1 change: 1 addition & 0 deletions docs/feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ as output formatting) won't appear here.
- `parent_owner`: Repository owner of the parent issue. Must be provided with parent_repo. Omit both to use owner and repo. Only used when parent_issue_number is provided. (string, optional)
- `parent_repo`: Repository name of the parent issue. Must be provided with parent_owner. Omit both to use owner and repo. Only used when parent_issue_number is provided. (string, optional)
- `repo`: Repository name (string, required)
- `status`: Initial planning status (create only). Only open statuses are supported. Backlog is backlog; Todo is planned; In progress and In review are started. Omit to use the default status, Backlog. (string, optional)
- `title`: Issue title (string, required)

- **hide_issue_comment** - Hide Issue Comment
Expand Down
10 changes: 10 additions & 0 deletions pkg/github/__toolsnaps__/create_issue.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@
"type": "string",
"x-mcp-header": "repo"
},
"status": {
"description": "Initial planning status (create only). Only open statuses are supported. Backlog is backlog; Todo is planned; In progress and In review are started. Omit to use the default status, Backlog.",
"enum": [
"Backlog",
"Todo",
"In progress",
"In review"
],
"type": "string"
},
"title": {
"description": "Issue title",
"type": "string"
Expand Down
45 changes: 44 additions & 1 deletion pkg/github/__toolsnaps__/issue_read.snap
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,48 @@
],
"type": "string"
},
"status": {
"additionalProperties": false,
"description": "The issue's planning status, or null when it has none or it is not recognized. Backlog is backlog; Todo is planned; In progress and In review are started; Done is completed; Not planned is not_planned; Duplicate is duplicate.",
"properties": {
"category": {
"enum": [
"backlog",
"planned",
"started",
"completed",
"not_planned",
"duplicate"
],
"type": "string"
},
"id": {
"description": "The status ID.",
"type": "integer"
},
"name": {
"enum": [
"Backlog",
"Todo",
"In progress",
"In review",
"Done",
"Not planned",
"Duplicate"
],
"type": "string"
}
},
"required": [
"id",
"name",
"category"
],
"type": [
"object",
"null"
]
},
"sub_issues_summary": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -642,7 +684,8 @@
"number",
"title",
"state",
"assignees"
"assignees",
"status"
],
"type": [
"null",
Expand Down
10 changes: 10 additions & 0 deletions pkg/github/__toolsnaps__/issue_write.snap
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@
],
"type": "string"
},
"status": {
"description": "Initial planning status (create only). Only open statuses are supported. Backlog is backlog; Todo is planned; In progress and In review are started. Omit to use the default status, Backlog.",
"enum": [
"Backlog",
"Todo",
"In progress",
"In review"
],
"type": "string"
},
"title": {
"description": "Issue title",
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/__toolsnaps__/search_issues.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"readOnlyHint": true,
"title": "Search issues"
},
"description": "Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue.",
"description": "Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue. Filter by planning status with the status: qualifier, for example status:\"In progress\". Statuses: Backlog, Todo, In progress, In review, Done, Not planned, Duplicate.",
"inputSchema": {
"properties": {
"fields": {
Expand Down
130 changes: 130 additions & 0 deletions pkg/github/__toolsnaps__/update_issue_status.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Update Issue Status"
},
"description": "Update an issue's planning status. Done, Not planned and Duplicate close the issue; the other statuses keep it open or reopen it. Closing statuses require confirm_close: true, set only after the user confirms closing the issue. Duplicate requires duplicate_of, the canonical issue number in the same repository. A status cannot be removed.",
"icons": [
{
"mimeType": "image/png",
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhE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"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABxElEQVRIibWVvW4TURCFv0vlNEDcIHAkKAERJOIKSjoUArwBPwUFFaKIIngAJARCPIgdh4cgRBYt6ZIAEYEqdhpEw0fhCbkKa68dxyNtsfNzzpnZu3NhwpYGBdUqcA+4A1wEZiK0DawD74FWSml3JAJ1CngGLAIngU1gFfgZKWeAG8AFoAu8At6mlH6VtqTOqJ/UP2pDnRuQO6c27VlbrQ0Dvq121Fulag7q5qPmW18SdSqUd9Qrw4Jn9bNR21YrRQkvYixDKy/AuB3jWjocqKpdtXFU8AxrOTqZzp2PgvnaMRDUA+tB7mypG+OCZ3hbahPgRPguAR9LihaicEu9WcKxClzOi/fU1wPAk7rjgX0uEfNG3cs7mJjtE+wA5/olpZQEHgNf6K2NJyW4NeD7v7c4WptjSc0svlMjdzyM2fbdOyOA7x/T+7mzGj9H8xgIWuquevpw4HmsivkxwBdC/WJRsBKLqqPOHgH8aqybtcJlF0m1WLndUToJ5V31q9r3NOYk7Wh1Wa0PyK3HzA3l/4H3uzIrwFNgCThF7/x/AH5EylngOnAe6AAvgXcppd9DEWRE08DdeIou/RVgJaXUGYQzUfsL+zmwV7BtIq0AAAAASUVORK5CYII=",
"theme": "dark"
}
],
"inputSchema": {
"properties": {
"confirm_close": {
"description": "Must be true for Done, Not planned or Duplicate. Set only after the user confirms closing the issue.",
"type": "boolean"
},
"duplicate_of": {
"description": "The canonical issue number. Required only for Duplicate.",
"minimum": 1,
"type": "number"
},
"issue_number": {
"description": "The issue number to update",
"minimum": 1,
"type": "number"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string",
"x-mcp-header": "owner"
},
"repo": {
"description": "Repository name",
"type": "string",
"x-mcp-header": "repo"
},
"status": {
"description": "The planning status to assign.",
"enum": [
"Backlog",
"Todo",
"In progress",
"In review",
"Done",
"Not planned",
"Duplicate"
],
"type": "string"
}
},
"required": [
"owner",
"repo",
"issue_number",
"status"
],
"type": "object"
},
"name": "update_issue_status",
"outputSchema": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"status": {
"additionalProperties": false,
"description": "The issue's planning status, or null when it has none or it is not recognized. Backlog is backlog; Todo is planned; In progress and In review are started; Done is completed; Not planned is not_planned; Duplicate is duplicate.",
"properties": {
"category": {
"enum": [
"backlog",
"planned",
"started",
"completed",
"not_planned",
"duplicate"
],
"type": "string"
},
"id": {
"description": "The status ID.",
"type": "integer"
},
"name": {
"enum": [
"Backlog",
"Todo",
"In progress",
"In review",
"Done",
"Not planned",
"Duplicate"
],
"type": "string"
}
},
"required": [
"id",
"name",
"category"
],
"type": [
"object",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"id",
"url",
"status"
],
"type": "object"
}
}
3 changes: 3 additions & 0 deletions pkg/github/consolidated_issue_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type IssueWriteInput struct {
State *string `json:"state,omitempty"`
StateReason *string `json:"state_reason,omitempty"`
DuplicateOf *int `json:"duplicate_of,omitempty"`
Status *string `json:"status,omitempty"`
IssueFields []IssueWriteFieldInput `json:"issue_fields,omitempty"`
TypeProvided bool `json:"-"`
}
Expand Down Expand Up @@ -160,6 +161,7 @@ type IssueDetailsOutput struct {
Parent *MinimalIssueRef `json:"parent,omitempty"`
SubIssuesSummary *MinimalSubIssuesSummary `json:"sub_issues_summary,omitempty"`
ClosedByPullRequests *MinimalClosingPullRequests `json:"closed_by_pull_requests,omitempty"`
Status *IssuePlanningStatus `json:"status"`
}

func issueDetailsOutput(issue MinimalIssue) *IssueDetailsOutput {
Expand Down Expand Up @@ -381,6 +383,7 @@ func subIssueOutput(issue *github.SubIssue) (*SubIssueOutput, error) {
var issueReadOutputSchema = sync.OnceValue(func() *jsonschema.Schema {
schema := issueDTOschema[IssueReadOutput]()
issue := schema.Properties["issue"]
issue.Properties["status"] = issuePlanningStatusSchema()
issue.Properties["state"].Enum = []any{"", "open", "closed"}
issue.Properties["state_reason"].Enum = []any{"completed", "not_planned", "reopened", "duplicate"}
describeIssueSummarySchema(issue.Properties["sub_issues_summary"])
Expand Down
7 changes: 6 additions & 1 deletion pkg/github/granular_issue_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type GranularCreateIssueInput struct {
ParentIssueNumber *int `json:"parent_issue_number,omitempty"`
ParentOwner string `json:"parent_owner,omitempty"`
ParentRepo string `json:"parent_repo,omitempty"`
Status string `json:"status,omitempty"`
}

type GranularIssueTitleInput struct {
Expand Down Expand Up @@ -455,7 +456,11 @@ func normalizeGranularCreateIssueArguments(raw json.RawMessage) (json.RawMessage
parentNumber = &parentIssueNumber
}

return marshalGranularIssueArguments(args, GranularCreateIssueInput{Owner: owner, Repo: repo, Title: title, Body: body, ParentIssueNumber: parentNumber, ParentOwner: parentOwner, ParentRepo: parentRepo})
status, err := OptionalParam[string](args, "status")
if err != nil {
return nil, err
}
return marshalGranularIssueArguments(args, GranularCreateIssueInput{Owner: owner, Repo: repo, Title: title, Body: body, ParentIssueNumber: parentNumber, ParentOwner: parentOwner, ParentRepo: parentRepo, Status: status})
}

func normalizeGranularUpdateIssueAssigneesArguments(raw json.RawMessage) (json.RawMessage, error) {
Expand Down
Loading
Loading