Home / Servers / GitHub API / agent_automations_create_repo_automation
Create an automation for a repository
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Create an automation for a repository > [!NOTE] > This endpoint is in public preview and is subject to change. Creates a new automation in a repository. Personal automations are private to their creator. Shared automations are visible… [POST /agents/repos/{owner}/{repo}/automations]
Name on the gateway: github_api__agent_automations_create_repo_automation · 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. The name is not case sensitive. |
name required | string | The name of the automation. |
triggers | object | Trigger configuration for the automation. |
prompt required | string | The prompt for the automation. |
model | string | The model to use for sessions triggered by this automation. Omit or leave… |
reasoning_effort | string | The reasoning effort to use for sessions triggered by this automation. Omit or… |
tools | array | The tools available to the automation. |
enabled | boolean | Whether the automation should be created enabled. Defaults to true when omitted. |
type | personal | shared | The type of automation, fixed at creation. personal keeps it private to its… |
require_actor_write_permission | boolean | When true, event-triggered runs require the event actor to have repo write… |
continuous_history | boolean | When true, runs of this automation build on the session history of its… |
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__agent_automations_create_repo_automation",
"arguments": {
"owner": "…",
"repo": "…",
"name": "…",
"prompt": "…"
}
}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 an automation for a repository tool with owner set to ….