github_list_pull_requests
Retrieve and filter pull requests from a GitHub repository with options to sort, paginate, and filter by state, head, and base branch using the MCP Git Server.
Instructions
List pull requests for a repository with filtering and pagination
Input Schema
Name | Required | Description | Default |
---|---|---|---|
base | No | ||
direction | No | desc | |
head | No | ||
page | No | ||
per_page | No | ||
repo_name | Yes | ||
repo_owner | Yes | ||
sort | No | created | |
state | No | open |
Input Schema (JSON Schema)
{
"properties": {
"base": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Base"
},
"direction": {
"default": "desc",
"title": "Direction",
"type": "string"
},
"head": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Head"
},
"page": {
"default": 1,
"title": "Page",
"type": "integer"
},
"per_page": {
"default": 30,
"title": "Per Page",
"type": "integer"
},
"repo_name": {
"title": "Repo Name",
"type": "string"
},
"repo_owner": {
"title": "Repo Owner",
"type": "string"
},
"sort": {
"default": "created",
"title": "Sort",
"type": "string"
},
"state": {
"default": "open",
"title": "State",
"type": "string"
}
},
"required": [
"repo_owner",
"repo_name"
],
"title": "GitHubListPullRequests",
"type": "object"
}