Home / Servers / GitHub API / agent_tasks_list_tasks_for_repo

List tasks for repository

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

List tasks for repository > [!NOTE] > This endpoint is in public preview and is subject to change. Returns a list of tasks for a specific repository **Fine-grained access tokens for "List tasks for repository"** This… [GET /agents/repos/{owner}/{repo}/tasks]

Name on the gateway: github_api__agent_tasks_list_tasks_for_repo · read-only.

Parameters

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository. The name is not case sensitive.
per_pageintegerThe number of results per page (max 100).
pageintegerThe page number of the results to fetch.
sortupdated_at | created_atThe field to sort results by. Can be updated_at or created_at.
directionasc | descThe direction to sort results. Can be asc or desc.
statestringComma-separated list of task states to filter by. Can be any combination of…
is_archivedbooleanFilter by archived status. When true, returns only archived tasks. When false…
sincestringOnly show tasks updated at or after this time (ISO 8601 timestamp)
creator_idarrayFilter tasks by creator user ID. Accepts one or more user IDs.

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__agent_tasks_list_tasks_for_repo",
  "arguments": {
    "owner": "…",
    "repo": "…"
  }
}

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 list tasks for repository tool with owner set to ….

More from GitHub API