Home / Servers / GitHub API / agent_tasks_create_task_in_repo
Start a task
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Start a task > [!NOTE] > This endpoint is in public preview and is subject to change. Starts a new Copilot cloud agent task for a repository. This endpoint is only available to users with a Copilot Business or… [POST /agents/repos/{owner}/{repo}/tasks]
Name on the gateway: github_api__agent_tasks_create_task_in_repo · 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. |
prompt required | string | The user's prompt for the agent |
model | string | The model to use for this task. The allowed models may change over time and… |
custom_agent | string | Optional identifier for a custom agent to use for this task. Use the custom… |
create_pull_request | boolean | Whether to create a PR. |
base_ref | string | Base ref for new branch/PR |
head_ref | string | Head ref for existing branch/PR. If provided with base_ref, the agent looks up… |
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_tasks_create_task_in_repo",
"arguments": {
"owner": "…",
"repo": "…",
"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 start a task tool with owner set to ….