Home / Servers / GitHub API / repos_create_deployment

Create a deployment

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

Create a deployment Deployments offer a few configurable parameters with certain defaults. The ref parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a… [POST /repos/{owner}/{repo}/deployments]

Name on the gateway: github_api__repos_create_deployment · 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…
ref requiredstringThe ref to deploy. This can be a branch, tag, or SHA.
taskstringSpecifies a task to execute (e.g., deploy or deploy:migrations).
auto_mergebooleanAttempts to automatically merge the default branch into the requested ref, if…
required_contextsarrayThe status contexts to verify against commit status checks. If you omit this…
payloadobject
environmentstringName for the target deployment environment (e.g., production, staging, qa).
descriptionstringShort description of the deployment.
transient_environmentbooleanSpecifies if the given environment is specific to the deployment and will no…
production_environmentbooleanSpecifies if the given environment is one that end-users directly interact…

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__repos_create_deployment",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "ref": "…"
  }
}

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 deployment tool with owner set to ….

More from GitHub API