GitHub · Capability
github-repos-api — Lists
github-repos-api — Lists. 8 operations. Lead operation: GitHub List Pull Requests. Self-contained Naftiko capability covering one Github business surface.
What You Can Do
GET
Listpullrequests
— GitHub List Pull Requests
/v1/repos/{owner}/{repo}/pulls
GET
Listreviewcommentsinrepository
— GitHub List Review Comments in Repository
/v1/repos/{owner}/{repo}/pulls/comments
GET
Listreactionsforpullrequestreviewcomment
— GitHub List Reactions for Pull Request Review Comment
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions
GET
Listreviewcommentsonpullrequest
— GitHub List Review Comments on Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/comments
GET
Listcommitsonpullrequest
— GitHub List Commits on Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/commits
GET
Listpullrequestsfiles
— GitHub List Pull Requests Files
/v1/repos/{owner}/{repo}/pulls/{pull-number}/files
GET
Listreviewsforpullrequest
— GitHub List Reviews for Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews
GET
Listcommentsforpullrequestreview
— GitHub List Comments for Pull Request Review
/v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}/comments
MCP Tools
github-list-pull-requests
GitHub List Pull Requests
read-only
idempotent
github-list-review-comments-repository
GitHub List Review Comments in Repository
read-only
idempotent
github-list-reactions-pull-request
GitHub List Reactions for Pull Request Review Comment
read-only
idempotent
github-list-review-comments-pull
GitHub List Review Comments on Pull Request
read-only
idempotent
github-list-commits-pull-request
GitHub List Commits on Pull Request
read-only
idempotent
github-list-pull-requests-files
GitHub List Pull Requests Files
read-only
idempotent
github-list-reviews-pull-request
GitHub List Reviews for Pull Request
read-only
idempotent
github-list-comments-pull-request
GitHub List Comments for Pull Request Review
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: github-repos-api — Lists
description: 'github-repos-api — Lists. 8 operations. Lead operation: GitHub List Pull Requests. Self-contained Naftiko
capability covering one Github business surface.'
tags:
- Github
- Lists
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
GITHUB_API_KEY: GITHUB_API_KEY
capability:
consumes:
- type: http
namespace: repo-pulls-lists
baseUri: ''
description: github-repos-api — Lists business capability. Self-contained, no shared references.
resources:
- name: repos-owner-repo-pulls
path: /repos/{owner}/{repo}/pulls
operations:
- name: listpullrequests
method: GET
description: GitHub List Pull Requests
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: state
in: query
type: string
description: Either `open`, `closed`, or `all` to filter by state.
- name: head
in: query
type: string
description: 'Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or
`organization:ref-name`. For example: `github:new-script-form'
- name: base
in: query
type: string
description: 'Filter pulls by base branch name. Example: `gh-pages`.'
- name: sort
in: query
type: string
description: 'What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort
by date created and will limit the results to pull requests '
- name: direction
in: query
type: string
description: 'The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise
`asc`.'
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: repos-owner-repo-pulls-comments
path: /repos/{owner}/{repo}/pulls/comments
operations:
- name: listreviewcommentsinrepository
method: GET
description: GitHub List Review Comments in Repository
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: sort
in: query
type: string
- name: direction
in: query
type: string
description: The direction to sort results. Ignored without `sort` parameter.
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: repos-owner-repo-pulls-comments-comment_id-reactions
path: /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions
operations:
- name: listreactionsforpullrequestreviewcomment
method: GET
description: GitHub List Reactions for Pull Request Review Comment
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: content
in: query
type: string
description: Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions).
Omit this parameter to list all reacti
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: repos-owner-repo-pulls-pull_number-comments
path: /repos/{owner}/{repo}/pulls/{pull_number}/comments
operations:
- name: listreviewcommentsonpullrequest
method: GET
description: GitHub List Review Comments on Pull Request
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: direction
in: query
type: string
description: The direction to sort results. Ignored without `sort` parameter.
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: repos-owner-repo-pulls-pull_number-commits
path: /repos/{owner}/{repo}/pulls/{pull_number}/commits
operations:
- name: listcommitsonpullrequest
method: GET
description: GitHub List Commits on Pull Request
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: repos-owner-repo-pulls-pull_number-files
path: /repos/{owner}/{repo}/pulls/{pull_number}/files
operations:
- name: listpullrequestsfiles
method: GET
description: GitHub List Pull Requests Files
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: repos-owner-repo-pulls-pull_number-reviews
path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews
operations:
- name: listreviewsforpullrequest
method: GET
description: GitHub List Reviews for Pull Request
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: repos-owner-repo-pulls-pull_number-reviews-review_id-comments
path: /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments
operations:
- name: listcommentsforpullrequestreview
method: GET
description: GitHub List Comments for Pull Request Review
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
authentication:
type: bearer
token: '{{env.GITHUB_API_KEY}}'
exposes:
- type: rest
namespace: repo-pulls-lists-rest
port: 8080
description: REST adapter for github-repos-api — Lists. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/repos/{owner}/{repo}/pulls
name: repos-owner-repo-pulls
description: REST surface for repos-owner-repo-pulls.
operations:
- method: GET
name: listpullrequests
description: GitHub List Pull Requests
call: repo-pulls-lists.listpullrequests
with:
state: rest.state
head: rest.head
base: rest.base
sort: rest.sort
direction: rest.direction
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/pulls/comments
name: repos-owner-repo-pulls-comments
description: REST surface for repos-owner-repo-pulls-comments.
operations:
- method: GET
name: listreviewcommentsinrepository
description: GitHub List Review Comments in Repository
call: repo-pulls-lists.listreviewcommentsinrepository
with:
sort: rest.sort
direction: rest.direction
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions
name: repos-owner-repo-pulls-comments-comment-id-reactions
description: REST surface for repos-owner-repo-pulls-comments-comment_id-reactions.
operations:
- method: GET
name: listreactionsforpullrequestreviewcomment
description: GitHub List Reactions for Pull Request Review Comment
call: repo-pulls-lists.listreactionsforpullrequestreviewcomment
with:
content: rest.content
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/comments
name: repos-owner-repo-pulls-pull-number-comments
description: REST surface for repos-owner-repo-pulls-pull_number-comments.
operations:
- method: GET
name: listreviewcommentsonpullrequest
description: GitHub List Review Comments on Pull Request
call: repo-pulls-lists.listreviewcommentsonpullrequest
with:
direction: rest.direction
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/commits
name: repos-owner-repo-pulls-pull-number-commits
description: REST surface for repos-owner-repo-pulls-pull_number-commits.
operations:
- method: GET
name: listcommitsonpullrequest
description: GitHub List Commits on Pull Request
call: repo-pulls-lists.listcommitsonpullrequest
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/files
name: repos-owner-repo-pulls-pull-number-files
description: REST surface for repos-owner-repo-pulls-pull_number-files.
operations:
- method: GET
name: listpullrequestsfiles
description: GitHub List Pull Requests Files
call: repo-pulls-lists.listpullrequestsfiles
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews
name: repos-owner-repo-pulls-pull-number-reviews
description: REST surface for repos-owner-repo-pulls-pull_number-reviews.
operations:
- method: GET
name: listreviewsforpullrequest
description: GitHub List Reviews for Pull Request
call: repo-pulls-lists.listreviewsforpullrequest
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/reviews/{review-id}/comments
name: repos-owner-repo-pulls-pull-number-reviews-review-id-comments
description: REST surface for repos-owner-repo-pulls-pull_number-reviews-review_id-comments.
operations:
- method: GET
name: listcommentsforpullrequestreview
description: GitHub List Comments for Pull Request Review
call: repo-pulls-lists.listcommentsforpullrequestreview
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: repo-pulls-lists-mcp
port: 9090
transport: http
description: MCP adapter for github-repos-api — Lists. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: github-list-pull-requests
description: GitHub List Pull Requests
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listpullrequests
with:
state: tools.state
head: tools.head
base: tools.base
sort: tools.sort
direction: tools.direction
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-review-comments-repository
description: GitHub List Review Comments in Repository
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listreviewcommentsinrepository
with:
sort: tools.sort
direction: tools.direction
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-reactions-pull-request
description: GitHub List Reactions for Pull Request Review Comment
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listreactionsforpullrequestreviewcomment
with:
content: tools.content
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-review-comments-pull
description: GitHub List Review Comments on Pull Request
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listreviewcommentsonpullrequest
with:
direction: tools.direction
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-commits-pull-request
description: GitHub List Commits on Pull Request
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listcommitsonpullrequest
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-pull-requests-files
description: GitHub List Pull Requests Files
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listpullrequestsfiles
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-reviews-pull-request
description: GitHub List Reviews for Pull Request
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listreviewsforpullrequest
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-comments-pull-request
description: GitHub List Comments for Pull Request Review
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-pulls-lists.listcommentsforpullrequestreview
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.