Home / Servers / GitHub API / repos_create_pages_site
Create a GitHub Pages site
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Create a GitHub Pages site Configures a GitHub Pages site. For more information, see "About GitHub Pages." The authenticated user must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings'… [POST /repos/{owner}/{repo}/pages]
Name on the gateway: github_api__repos_create_pages_site · 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… |
build_type | legacy | workflow | The process in which the Page will be built. Possible values are "legacy" and… |
source required | object | The source branch and directory used to publish your Pages site. |
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_site",
"arguments": {
"owner": "…",
"repo": "…",
"source": "…"
}
}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 site tool with owner set to ….