AgentAPIGate
Back to Catalog
GET /v1/github/repo/prs_commitsPack: intel·MCP Tool: github_repo_prs_commits

GitHub Repo PRs, Commits & File History

Query public GitHub repository pull requests, commit logs, and file commit history with keyless REST and Atom fallback.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
GitHub organization or username (e.g. modelcontextprotocol, honojs)
GitHub repository name (e.g. servers, hono)
Data slice to fetch: all, commits, pulls, or file_history (default: all)
Optional file or directory path within the repo to filter commit history (e.g. README.md)
Pull request state filter: all, open, or closed (default: all)
Optional branch or SHA to query commits from (defaults to default branch)
Max items per section (1-30, default: 10)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/github/repo/prs_commits" \
  --data-urlencode "owner=modelcontextprotocol" \
  --data-urlencode "repo=servers" \
  --data-urlencode "resource=all" \
  --data-urlencode "limit=5" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-77% tokens
# GitHub Repo PRs, Commits & File History (`github.repo.prs_commits`)
**owner**: modelcontextprotocol · **repo**: servers · **resource**: all · **state**: all · **source**: github_rest · **commits_count**: 5 · **pulls_count**: 5

## commits
- [1] sha: b502fd9fc711de7285977396db3b8a732d1c9f64, short_sha: b502fd9, message: Merge pull request #5685 from modelcontextprotocol/v2/chore/5681-release-v2.6.0, author_name: Cliff Hall, author_login: cliffhall
- [2] sha: c0075947ac6be8bb402d0fb202ba68b2455f0909, short_sha: c007594, message: Merge pull request #5682 from modelcontextprotocol/v2/chore/5681-python-calver-2026.11.27, author_name: Cliff Hall, author_login: cliffhall
- [3] sha: 5de8459a2c01410d661259fbf6d656cf5fc7afc1, short_sha: 5de8459, message: Merge pull request #5684 from modelcontextprotocol/v2/chore/5683-memory-restore-count-test, author_name: Cliff Hall, author_login: cliffhall
- [4] sha: 53afb97437da20225756908b0de1f1d4de766724, short_sha: 53afb97, message: test(memory): count a real Windows refusal of the lock put-back as a retry, not a failure, author_name: cliffhall, author_login: cliffhall
- [5] sha: f1515d83c834e8b1910ee773389b05f994436a7b, short_sha: f1515d8, message: chore: stamp Python CalVer versions for 2026.11.27, author_name: github-actions[bot], author_login: github-actions[bot]
## pulls
- [1] number: 5517, title: chore: roll up the v2.4.0 advisory fixes for review (not for merge), state: closed, draft: false, user_login: cliffhall
- [2] number: 5480, title: chore(filesystem): v2.4.0 rollup — verify the seven filesystem PRs together (do not merge), state: closed, draft: false, user_login: cliffhall
- [3] number: 5685, title: Release v2.6.0: merge v2/main into main, state: merged, draft: false, user_login: cliffhall
- [4] number: 5682, title: chore: stamp Python CalVer versions for 2026.11.27, state: merged, draft: false, user_login: github-actions[bot]
- [5] number: 5684, title: test(memory): count a real Windows refusal of the lock put-back as a retry, state: merged, draft: false, user_login: cliffhall

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: github.repo.prs_commits · Method: GET
ParameterTypeReqSample / DefaultDescription
ownerstringrequiredmodelcontextprotocolGitHub organization or username (e.g. modelcontextprotocol, honojs)
repostringrequiredserversGitHub repository name (e.g. servers, hono)
resourcestringoptionalallData slice to fetch: all, commits, pulls, or file_history (default: all)
pathstringoptional—Optional file or directory path within the repo to filter commit history (e.g. README.md)
statestringoptionalallPull request state filter: all, open, or closed (default: all)
branchstringoptional—Optional branch or SHA to query commits from (defaults to default branch)
limitnumberoptional5Max items per section (1-30, default: 10)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolgithub_repo_prs_commitsOAuth 2.1 Hub & /mcp/intel
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency1354 ms$0 billed on empty or 4xx/5xx
Token Economy2372t → 546t (-77%)Partner credit: eligible

More github.repo Sibling Endpoints

Frequently Asked Questions

How do I call GitHub Repo PRs, Commits & File History (github.repo.prs_commits) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/github/repo/prs_commits with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool github_repo_prs_commits on https://mcp.agentapigate.ai/mcp.

What does github.repo.prs_commits cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on github.repo.prs_commits?

Passing ?format=md transforms the response into normalized Markdown (~546 tokens vs ~2372 raw tokens, saving 77% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only intel endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["github.repo.prs_commits"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.