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
| Name | Type | Description |
|---|---|---|
owner required | string | The account owner of the repository. The name is not case… |
repo required | string | The name of the repository without the .git extension. The… |
title | string | The title of the new pull request. Required unless issue is specified. |
head required | string | The name of the branch where your changes are implemented. For… |
head_repo | string | The name of the repository where the changes in the pull request were made.… |
base required | string | The name of the branch you want the changes pulled into. This should be an… |
body | string | The contents of the pull request. |
maintainer_can_modify | boolean | Indicates whether maintainers can modify the pull request. |
draft | boolean | Indicates whether the pull request is a draft. See "Draft Pull Requests" in… |
issue | integer | An 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:
{
"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:
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 ….