Home / Servers / GitHub API / pulls_create

Create a pull request

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Create a pull request Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private… [POST /repos/{owner}/{repo}/pulls]

Name on the gateway: github_api__pulls_create · may change things.

Parameters

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository without the .git extension. The…
titlestringThe title of the new pull request. Required unless issue is specified.
head requiredstringThe name of the branch where your changes are implemented. For…
head_repostringThe name of the repository where the changes in the pull request were made.…
base requiredstringThe name of the branch you want the changes pulled into. This should be an…
bodystringThe contents of the pull request.
maintainer_can_modifybooleanIndicates whether maintainers can modify the pull request.
draftbooleanIndicates whether the pull request is a draft. See "Draft Pull Requests" in…
issueintegerAn issue in the repository to convert to a pull request. The issue title…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__pulls_create",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "head": "…",
    "base": "…"
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a pull request tool with owner set to ….

More from GitHub API