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

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository without the .git extension. The…
artifact_idnumberThe ID of an artifact that contains the .zip or .tar of static assets to…
artifact_urlstringThe URL of an artifact that contains the .zip or .tar of static assets to…
environmentstringThe target environment for this GitHub Pages deployment.
pages_build_version requiredstringA unique string that represents the version of the build for this deployment.
oidc_token requiredstringThe 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:

call_tool arguments
{
  "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:

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

More from GitHub API