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
| 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… |
ref required | string | The ref to deploy. This can be a branch, tag, or SHA. |
task | string | Specifies a task to execute (e.g., deploy or deploy:migrations). |
auto_merge | boolean | Attempts to automatically merge the default branch into the requested ref, if… |
required_contexts | array | The status contexts to verify against commit status checks. If you omit this… |
payload | object | |
environment | string | Name for the target deployment environment (e.g., production, staging, qa). |
description | string | Short description of the deployment. |
transient_environment | boolean | Specifies if the given environment is specific to the deployment and will no… |
production_environment | boolean | Specifies 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:
{
"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:
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 ….