Sitelet https://github.com/github/github-mcp-server/pull/3868/files
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
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,20 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat
- `reviewers`: GitHub usernames or ORG/team-slug team reviewers to request reviews from (string[], optional)
- `title`: PR title (string, required)

- **dequeue_pull_request** - Remove pull request from merge queue
- **OAuth Challenge Scopes**: `repo`
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **enqueue_pull_request** - Add pull request to merge queue
- **OAuth Challenge Scopes**: `repo`
- `expectedHeadSha`: The expected SHA of the pull request's HEAD ref. The pull request is only queued if its head still matches. (string, optional)
- `jump`: Add the pull request to the front of the queue instead of the back (boolean, optional)
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **list_pull_requests** - List pull requests
- **OAuth Challenge Scopes**: `repo`
- `base`: Filter by base branch (string, optional)
Expand Down Expand Up @@ -1355,6 +1369,7 @@ For negotiated supported protocol versions `2026-07-28` or newer, the consolidat
7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.
8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.
10. get_merge_queue_status - Get whether the base branch requires a merge queue and, if the pull request is queued, its position, state and estimated time to merge. Use it to choose between merge_pull_request and enqueue_pull_request.
(string, required)
- `owner`: Repository owner (string, required)
- `page`: Page number for pagination (min 1) (number, optional)
Expand Down
97 changes: 97 additions & 0 deletions pkg/github/__toolsnaps__/dequeue_pull_request.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"annotations": {
"idempotentHint": false,
"readOnlyHint": false,
"title": "Remove pull request from merge queue"
},
"description": "Remove a pull request from the merge queue of its base branch. Returns the removed merge queue entry.",
"icons": [
{
"mimeType": "image/png",
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAACeElEQVRIibWVTUhUYRSGn/e74+iiQih1F9Vcmj9sptylUVBYkO4jcNeuJBdFKxe1CYQokGrRKjCEdtmqwEVmtqomQWeiUdc2EBUtUufe0yLHn1KLGXtX5zvn4zz3vd8f/Gfp90Qs0drmpA6MT1EveDo1NfV92wB+KnMdo39Nfs4L7eSHD5Nz1QJcJYglWtsw+iUehAuRRjO1g+0KHLerbb4OIHnHAC1FdW129s3XmUJuwnBDoOPbA7BwHsD7QWq1HKYN5msBRCpB1AueLoSROSkciSUyj5ClhE6BLtYC8CpBqVRabNrdMmIiJdQjuUbQ1WI+d78WwIbykxnzU9np7ejlNq2YxQ4ebNtTKyCyWcEgYl55EDj/a7ihFEtkLkr0As2YxjwL+9aem00dCEYNzvnJzLDvH27aaM5y80HEnKGHKGwPnEbT6fSOvzpAmrDQnkncpC7siiUzz2QqIPu25iOuGBorTufO/AJmH0v2ajHwuoHhrQHATOH9rQPJ7IjDLgs6kZ0F6it1AzArVcZLdUE+WnYgmv/uYFmz+dxH4NJGNT+RfYLCE7F4tn0pGkxHy94AmBm8/GfAVvIs7AukUTkbj5YdYIbZ9WJh8m1lzrrbNB4/tD+QuyPsdCibF26gmM/dY/NdRDqd3rEYeN04mswYL+ZXm68DxOPxnWXXMClsp+GGhCWBTtClYj53t1qXK78oVH2XYB/mHZ0pvHsN4Cczzw3rBaoGrJ6D5ZUvN1i+kjI0LWiptjmscbC88hZZCAf2trZeq1v0UsJ6wF7UAlhxUMxPvkW6AboQLbvPcjaO+BIx11cL4I9H308eOiLRQUhpOx79/66fNKzrOCYNDm0AAAAASUVORK5CYII=",
"theme": "light"
},
{
"mimeType": "image/png",
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABjElEQVRIibWVPS/DURTGnysSC0HiZdWVrZ28JDaLT8BHaBsMdjqZJDXiAzC2LF5mX6GtATGiIsGARH+Gnj9X8a/kf3uWe3Py3Oc559xz75E6bK7VAWQkzUi6lXTonHsOpgYUgAZfdgmkQpFnjHwb6AemgDpQCiWwYlEPeL4i8JCEt8vb39g67vkmPH8yA3qt5nVgCzi1jLJBBEwkBZSAdxPKAj86LYQQQCU4cYvAKzDUSYF3YC+uRIAD8sA58ACU//VuTODE1n1g+A9c3jBH1tJ1a5TeCPNrdACSCpKeJG1IepN0LKkm6dGDrkqqOOdm7dyUpDNJi865PUnqjsvEObcJHEhaljQnaV5STwvszttXbR2J441KtB4LauLKVpZpYBDYte8mHUogZTWPrAGstTtQBl6AayDX7qHZD7AALMVGDvQBV5ZyETi2qHLtMvmXWRQAk57vBKgl4fV/0+jmq56vImk0icCnAWm7pB3riGngnlADx0TW+T4yL4CxJJy/Df20mkP/TqGHfifsA7INs3X5i3+yAAAAAElFTkSuQmCC",
"theme": "dark"
}
],
"inputSchema": {
"properties": {
"owner": {
"description": "Repository owner",
"type": "string"
},
"pullNumber": {
"description": "Pull request number",
"type": "number"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"pullNumber"
],
"type": "object"
},
"name": "dequeue_pull_request",
"outputSchema": {
"additionalProperties": false,
"properties": {
"enqueued_at": {
"description": "RFC 3339 timestamp.",
"type": "string"
},
"estimated_time_to_merge": {
"description": "Estimated number of seconds until the pull request is merged.",
"type": [
"null",
"integer"
]
},
"id": {
"type": "string"
},
"jump": {
"description": "Whether the entry was added to the front of the queue.",
"type": "boolean"
},
"position": {
"description": "One-based position in the merge queue.",
"type": "integer"
},
"solo": {
"description": "Whether the entry is merged on its own rather than grouped with other entries.",
"type": "boolean"
},
"state": {
"description": "Merge queue entry state.",
"enum": [
"QUEUED",
"AWAITING_CHECKS",
"MERGEABLE",
"UNMERGEABLE",
"LOCKED"
],
"type": "string"
}
},
"required": [
"id",
"position",
"state",
"enqueued_at",
"jump",
"solo"
],
"type": [
"object",
"null"
]
}
}
105 changes: 105 additions & 0 deletions pkg/github/__toolsnaps__/enqueue_pull_request.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"annotations": {
"idempotentHint": false,
"readOnlyHint": false,
"title": "Add pull request to merge queue"
},
"description": "Add a pull request to the merge queue of its base branch. Use this instead of merge_pull_request when the base branch requires a merge queue (see the get_merge_queue_status method of pull_request_read); the queue merges the pull request once its checks pass. Returns the merge queue entry.",
"icons": [
{
"mimeType": "image/png",
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAACeElEQVRIibWVTUhUYRSGn/e74+iiQih1F9Vcmj9sptylUVBYkO4jcNeuJBdFKxe1CYQokGrRKjCEdtmqwEVmtqomQWeiUdc2EBUtUufe0yLHn1KLGXtX5zvn4zz3vd8f/Gfp90Qs0drmpA6MT1EveDo1NfV92wB+KnMdo39Nfs4L7eSHD5Nz1QJcJYglWtsw+iUehAuRRjO1g+0KHLerbb4OIHnHAC1FdW129s3XmUJuwnBDoOPbA7BwHsD7QWq1HKYN5msBRCpB1AueLoSROSkciSUyj5ClhE6BLtYC8CpBqVRabNrdMmIiJdQjuUbQ1WI+d78WwIbykxnzU9np7ejlNq2YxQ4ebNtTKyCyWcEgYl55EDj/a7ihFEtkLkr0As2YxjwL+9aem00dCEYNzvnJzLDvH27aaM5y80HEnKGHKGwPnEbT6fSOvzpAmrDQnkncpC7siiUzz2QqIPu25iOuGBorTufO/AJmH0v2ajHwuoHhrQHATOH9rQPJ7IjDLgs6kZ0F6it1AzArVcZLdUE+WnYgmv/uYFmz+dxH4NJGNT+RfYLCE7F4tn0pGkxHy94AmBm8/GfAVvIs7AukUTkbj5YdYIbZ9WJh8m1lzrrbNB4/tD+QuyPsdCibF26gmM/dY/NdRDqd3rEYeN04mswYL+ZXm68DxOPxnWXXMClsp+GGhCWBTtClYj53t1qXK78oVH2XYB/mHZ0pvHsN4Cczzw3rBaoGrJ6D5ZUvN1i+kjI0LWiptjmscbC88hZZCAf2trZeq1v0UsJ6wF7UAlhxUMxPvkW6AboQLbvPcjaO+BIx11cL4I9H308eOiLRQUhpOx79/66fNKzrOCYNDm0AAAAASUVORK5CYII=",
"theme": "light"
},
{
"mimeType": "image/png",
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABjElEQVRIibWVPS/DURTGnysSC0HiZdWVrZ28JDaLT8BHaBsMdjqZJDXiAzC2LF5mX6GtATGiIsGARH+Gnj9X8a/kf3uWe3Py3Oc559xz75E6bK7VAWQkzUi6lXTonHsOpgYUgAZfdgmkQpFnjHwb6AemgDpQCiWwYlEPeL4i8JCEt8vb39g67vkmPH8yA3qt5nVgCzi1jLJBBEwkBZSAdxPKAj86LYQQQCU4cYvAKzDUSYF3YC+uRIAD8sA58ACU//VuTODE1n1g+A9c3jBH1tJ1a5TeCPNrdACSCpKeJG1IepN0LKkm6dGDrkqqOOdm7dyUpDNJi865PUnqjsvEObcJHEhaljQnaV5STwvszttXbR2J441KtB4LauLKVpZpYBDYte8mHUogZTWPrAGstTtQBl6AayDX7qHZD7AALMVGDvQBV5ZyETi2qHLtMvmXWRQAk57vBKgl4fV/0+jmq56vImk0icCnAWm7pB3riGngnlADx0TW+T4yL4CxJJy/Df20mkP/TqGHfifsA7INs3X5i3+yAAAAAElFTkSuQmCC",
"theme": "dark"
}
],
"inputSchema": {
"properties": {
"expectedHeadSha": {
"description": "The expected SHA of the pull request's HEAD ref. The pull request is only queued if its head still matches.",
"type": "string"
},
"jump": {
"description": "Add the pull request to the front of the queue instead of the back",
"type": "boolean"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"pullNumber": {
"description": "Pull request number",
"type": "number"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"pullNumber"
],
"type": "object"
},
"name": "enqueue_pull_request",
"outputSchema": {
"additionalProperties": false,
"properties": {
"enqueued_at": {
"description": "RFC 3339 timestamp.",
"type": "string"
},
"estimated_time_to_merge": {
"description": "Estimated number of seconds until the pull request is merged.",
"type": [
"null",
"integer"
]
},
"id": {
"type": "string"
},
"jump": {
"description": "Whether the entry was added to the front of the queue.",
"type": "boolean"
},
"position": {
"description": "One-based position in the merge queue.",
"type": "integer"
},
"solo": {
"description": "Whether the entry is merged on its own rather than grouped with other entries.",
"type": "boolean"
},
"state": {
"description": "Merge queue entry state.",
"enum": [
"QUEUED",
"AWAITING_CHECKS",
"MERGEABLE",
"UNMERGEABLE",
"LOCKED"
],
"type": "string"
}
},
"required": [
"id",
"position",
"state",
"enqueued_at",
"jump",
"solo"
],
"type": [
"object",
"null"
]
}
}
77 changes: 75 additions & 2 deletions pkg/github/__toolsnaps__/pull_request_read.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "string"
},
"method": {
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get combined commit status of a head commit in a pull request.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_commits - Get the list of commits on a pull request. Use with pagination parameters to control the number of results returned.\n 6. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns thread metadata and comments with nullable current and original line-range coordinates (line, start_line, original_line, original_start_line). Current coordinates are omitted when unavailable, such as for outdated comments. Use cursor-based pagination (perPage, after) to control results.\n 7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.\n 8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.\n 9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.\n",
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get combined commit status of a head commit in a pull request.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_commits - Get the list of commits on a pull request. Use with pagination parameters to control the number of results returned.\n 6. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns thread metadata and comments with nullable current and original line-range coordinates (line, start_line, original_line, original_start_line). Current coordinates are omitted when unavailable, such as for outdated comments. Use cursor-based pagination (perPage, after) to control results.\n 7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.\n 8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.\n 9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.\n 10. get_merge_queue_status - Get whether the base branch requires a merge queue and, if the pull request is queued, its position, state and estimated time to merge. Use it to choose between merge_pull_request and enqueue_pull_request.\n",
"enum": [
"get",
"get_diff",
Expand All @@ -22,7 +22,8 @@
"get_review_comments",
"get_reviews",
"get_comments",
"get_check_runs"
"get_check_runs",
"get_merge_queue_status"
],
"type": "string"
},
Expand Down Expand Up @@ -652,6 +653,78 @@
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"entry": {
"additionalProperties": false,
"properties": {
"enqueued_at": {
"description": "RFC 3339 timestamp.",
"type": "string"
},
"estimated_time_to_merge": {
"description": "Estimated number of seconds until the pull request is merged.",
"type": [
"null",
"integer"
]
},
"id": {
"type": "string"
},
"jump": {
"description": "Whether the entry was added to the front of the queue.",
"type": "boolean"
},
"position": {
"description": "One-based position in the merge queue.",
"type": "integer"
},
"solo": {
"description": "Whether the entry is merged on its own rather than grouped with other entries.",
"type": "boolean"
},
"state": {
"description": "Merge queue entry state.",
"enum": [
"QUEUED",
"AWAITING_CHECKS",
"MERGEABLE",
"UNMERGEABLE",
"LOCKED"
],
"type": "string"
}
},
"required": [
"id",
"position",
"state",
"enqueued_at",
"jump",
"solo"
],
"type": [
"null",
"object"
]
},
"in_merge_queue": {
"description": "Whether the pull request is in the merge queue.",
"type": "boolean"
},
"merge_queue_enabled": {
"description": "Whether the base branch requires a merge queue; use enqueue_pull_request instead of merge_pull_request when true.",
"type": "boolean"
}
},
"required": [
"merge_queue_enabled",
"in_merge_queue"
],
"type": "object"
},
{
"anyOf": [
{
Expand Down
Loading