Home / Servers / GitHub API / repos_create_pages_deployment
Create a GitHub Pages deployment
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Create a GitHub Pages deployment for a repository. The authenticated user must have write permission to the repository. [POST /repos/{owner}/{repo}/pages/deployments]
Name on the gateway: github_api__repos_create_pages_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… |
artifact_id | number | The ID of an artifact that contains the .zip or .tar of static assets to… |
artifact_url | string | The URL of an artifact that contains the .zip or .tar of static assets to… |
environment | string | The target environment for this GitHub Pages deployment. |
pages_build_version required | string | A unique string that represents the version of the build for this deployment. |
oidc_token required | string | The OIDC token issued by GitHub Actions certifying the origin of the deployment. |
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_pages_deployment",
"arguments": {
"owner": "…",
"repo": "…",
"pages_build_version": "…",
"oidc_token": "…"
}
}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 github pages deployment tool with owner set to ….