Files
github--github-mcp-server/pkg/github/__toolsnaps__/set_issue_fields.snap
Boaz Reicher d42bb3e678 Send update_issue_suggestions feature flag for set_issue_fields mutation (#2638)
* Using issues suggestions feature flag

* Gate set_issue_fields confidence behind update_issue_confidence flag

The GitHub GraphQL API does not yet accept the per-field confidence input
on setIssueFieldValue mutations. Hide it from the user-facing schema and
drop it from the mutation payload unless the new update_issue_confidence
feature flag is enabled so users do not try to use it before the API
supports it.

* adding back confidence

* Update set_issue_fields confidence schema and toolsnap
2026-06-10 01:39:16 -07:00

88 lines
3.4 KiB
Plaintext

{
"annotations": {
"destructiveHint": false,
"openWorldHint": true,
"title": "Set Issue Fields"
},
"description": "Set issue field values for an issue. Fields are organization-level custom fields (text, number, date, or single select). Use this to create or update field values on an issue.",
"inputSchema": {
"properties": {
"fields": {
"description": "Array of issue field values to set. Each element must have a 'field_id' (string, the GraphQL node ID of the field) and exactly one value field: 'text_value' for text fields, 'number_value' for number fields, 'date_value' (ISO 8601 date string) for date fields, or 'single_select_option_id' (the GraphQL node ID of the option) for single select fields. Set 'delete' to true to remove a field value.",
"items": {
"properties": {
"confidence": {
"description": "How confident you are in this choice. Use 'high' for clear signal or explicit user request, 'medium' for reasonable inference with some ambiguity, 'low' for best guess with limited signal.",
"enum": [
"low",
"medium",
"high"
],
"type": "string"
},
"date_value": {
"description": "The value to set for a date field (ISO 8601 date string)",
"type": "string"
},
"delete": {
"description": "Set to true to delete this field value",
"type": "boolean"
},
"field_id": {
"description": "The GraphQL node ID of the issue field",
"type": "string"
},
"is_suggestion": {
"description": "If true, this field value is sent to the API as a suggestion (suggest:true) rather than an applied value. Whether the value is applied or recorded as a proposal is determined by the API.",
"type": "boolean"
},
"number_value": {
"description": "The value to set for a number field",
"type": "number"
},
"rationale": {
"description": "One concise sentence explaining what specifically about the issue led you to choose this field value. State the concrete signal (e.g. 'Reports a crash when saving' → high priority).",
"maxLength": 280,
"type": "string"
},
"single_select_option_id": {
"description": "The GraphQL node ID of the option to set for a single select field",
"type": "string"
},
"text_value": {
"description": "The value to set for a text field",
"type": "string"
}
},
"required": [
"field_id"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"issue_number": {
"description": "The issue number to update",
"minimum": 1,
"type": "number"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"issue_number",
"fields"
],
"type": "object"
},
"name": "set_issue_fields"
}