Home / Servers / GitHub API / repos_create_deployment_status

Create a deployment status

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

Create a deployment status Users with push access can create deployment statuses for a given deployment. OAuth app tokens and personal access tokens (classic) need the repo_deployment scope to use this endpoint. [POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses]

Name on the gateway: github_api__repos_create_deployment_status · 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…
deployment_id requiredintegerdeployment_id parameter
state requirederror | failure | inactive | in_progress | queued | pending | successThe state of the status. When you set a transient deployment to inactive, the…
target_urlstringThe target URL to associate with this status. This URL should contain output…
log_urlstringThe full URL of the deployment's output. This parameter replaces target_url.…
descriptionstringA short description of the status. The maximum description length is 140…
environmentstringName for the target deployment environment, which can be changed when setting…
environment_urlstringSets the URL for accessing your environment. Default: ""
auto_inactivebooleanAdds a new inactive status to all prior non-transient, non-production…

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_status",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "deployment_id": 0,
    "state": "…"
  }
}

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

More from GitHub API