GitHub · Capability
github-repos-api — References
github-repos-api — References. 9 operations. Lead operation: GitHub List Check Runs for Git Reference. Self-contained Naftiko capability covering one Github business surface.
What You Can Do
GET
Listcheckrunsforgitreference
— GitHub List Check Runs for Git Reference
/v1/repos/{owner}/{repo}/commits/{ref}/check-runs
GET
Listchecksuitesforgitreference
— GitHub List Check Suites for Git Reference
/v1/repos/{owner}/{repo}/commits/{ref}/check-suites
GET
Getthecombinedstatusforspecificreference
— GitHub Get the Combined Status for Specific Reference
/v1/repos/{owner}/{repo}/commits/{ref}/status
GET
Listcommitstatusesforreference
— GitHub List Commit Statuses for Reference
/v1/repos/{owner}/{repo}/commits/{ref}/statuses
GET
Listmatchingreferences
— GitHub List Matching References
/v1/repos/{owner}/{repo}/git/matching-refs/{ref}
GET
Getreference
— GitHub Get Reference
/v1/repos/{owner}/{repo}/git/ref/{ref}
POST
Createreference
— GitHub Create Reference
/v1/repos/{owner}/{repo}/git/refs
PATCH
Updatereference
— GitHub Update Reference
/v1/repos/{owner}/{repo}/git/refs/{ref}
DELETE
Deletereference
— GitHub Delete Reference
/v1/repos/{owner}/{repo}/git/refs/{ref}
MCP Tools
github-list-check-runs-git
GitHub List Check Runs for Git Reference
read-only
idempotent
github-list-check-suites-git
GitHub List Check Suites for Git Reference
read-only
idempotent
github-get-combined-status-specific
GitHub Get the Combined Status for Specific Reference
read-only
idempotent
github-list-commit-statuses-reference
GitHub List Commit Statuses for Reference
read-only
idempotent
github-list-matching-references
GitHub List Matching References
read-only
idempotent
github-get-reference
GitHub Get Reference
read-only
idempotent
github-create-reference
GitHub Create Reference
github-update-reference
GitHub Update Reference
idempotent
github-delete-reference
GitHub Delete Reference
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: github-repos-api — References
description: 'github-repos-api — References. 9 operations. Lead operation: GitHub List Check Runs for Git Reference. Self-contained
Naftiko capability covering one Github business surface.'
tags:
- Github
- References
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
GITHUB_API_KEY: GITHUB_API_KEY
capability:
consumes:
- type: http
namespace: repo-tags-references
baseUri: ''
description: github-repos-api — References business capability. Self-contained, no shared references.
resources:
- name: repos-owner-repo-commits-ref-check-runs
path: /repos/{owner}/{repo}/commits/{ref}/check-runs
operations:
- name: listcheckrunsforgitreference
method: GET
description: GitHub List Check Runs for Git Reference
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: filter
in: query
type: string
description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs.
- name: app_id
in: query
type: integer
- 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-commits-ref-check-suites
path: /repos/{owner}/{repo}/commits/{ref}/check-suites
operations:
- name: listchecksuitesforgitreference
method: GET
description: GitHub List Check Suites for Git Reference
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: app_id
in: query
type: integer
description: Filters check suites by GitHub App `id`.
- 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-commits-ref-status
path: /repos/{owner}/{repo}/commits/{ref}/status
operations:
- name: getthecombinedstatusforspecificreference
method: GET
description: GitHub Get the Combined Status for Specific Reference
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-commits-ref-statuses
path: /repos/{owner}/{repo}/commits/{ref}/statuses
operations:
- name: listcommitstatusesforreference
method: GET
description: GitHub List Commit Statuses for Reference
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-git-matching-refs-ref
path: /repos/{owner}/{repo}/git/matching-refs/{ref}
operations:
- name: listmatchingreferences
method: GET
description: GitHub List Matching References
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-git-ref-ref
path: /repos/{owner}/{repo}/git/ref/{ref}
operations:
- name: getreference
method: GET
description: GitHub Get Reference
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-git-refs
path: /repos/{owner}/{repo}/git/refs
operations:
- name: createreference
method: POST
description: GitHub Create Reference
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: body
in: body
type: object
description: Request body (JSON).
required: true
- name: repos-owner-repo-git-refs-ref
path: /repos/{owner}/{repo}/git/refs/{ref}
operations:
- name: updatereference
method: PATCH
description: GitHub Update Reference
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: body
in: body
type: object
description: Request body (JSON).
required: true
- name: deletereference
method: DELETE
description: GitHub Delete Reference
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-tags-references-rest
port: 8080
description: REST adapter for github-repos-api — References. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/repos/{owner}/{repo}/commits/{ref}/check-runs
name: repos-owner-repo-commits-ref-check-runs
description: REST surface for repos-owner-repo-commits-ref-check-runs.
operations:
- method: GET
name: listcheckrunsforgitreference
description: GitHub List Check Runs for Git Reference
call: repo-tags-references.listcheckrunsforgitreference
with:
filter: rest.filter
app_id: rest.app_id
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/commits/{ref}/check-suites
name: repos-owner-repo-commits-ref-check-suites
description: REST surface for repos-owner-repo-commits-ref-check-suites.
operations:
- method: GET
name: listchecksuitesforgitreference
description: GitHub List Check Suites for Git Reference
call: repo-tags-references.listchecksuitesforgitreference
with:
app_id: rest.app_id
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/commits/{ref}/status
name: repos-owner-repo-commits-ref-status
description: REST surface for repos-owner-repo-commits-ref-status.
operations:
- method: GET
name: getthecombinedstatusforspecificreference
description: GitHub Get the Combined Status for Specific Reference
call: repo-tags-references.getthecombinedstatusforspecificreference
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}/commits/{ref}/statuses
name: repos-owner-repo-commits-ref-statuses
description: REST surface for repos-owner-repo-commits-ref-statuses.
operations:
- method: GET
name: listcommitstatusesforreference
description: GitHub List Commit Statuses for Reference
call: repo-tags-references.listcommitstatusesforreference
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}/git/matching-refs/{ref}
name: repos-owner-repo-git-matching-refs-ref
description: REST surface for repos-owner-repo-git-matching-refs-ref.
operations:
- method: GET
name: listmatchingreferences
description: GitHub List Matching References
call: repo-tags-references.listmatchingreferences
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}/git/ref/{ref}
name: repos-owner-repo-git-ref-ref
description: REST surface for repos-owner-repo-git-ref-ref.
operations:
- method: GET
name: getreference
description: GitHub Get Reference
call: repo-tags-references.getreference
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}/git/refs
name: repos-owner-repo-git-refs
description: REST surface for repos-owner-repo-git-refs.
operations:
- method: POST
name: createreference
description: GitHub Create Reference
call: repo-tags-references.createreference
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/git/refs/{ref}
name: repos-owner-repo-git-refs-ref
description: REST surface for repos-owner-repo-git-refs-ref.
operations:
- method: PATCH
name: updatereference
description: GitHub Update Reference
call: repo-tags-references.updatereference
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: deletereference
description: GitHub Delete Reference
call: repo-tags-references.deletereference
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: repo-tags-references-mcp
port: 9090
transport: http
description: MCP adapter for github-repos-api — References. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: github-list-check-runs-git
description: GitHub List Check Runs for Git Reference
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-tags-references.listcheckrunsforgitreference
with:
filter: tools.filter
app_id: tools.app_id
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-check-suites-git
description: GitHub List Check Suites for Git Reference
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-tags-references.listchecksuitesforgitreference
with:
app_id: tools.app_id
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-get-combined-status-specific
description: GitHub Get the Combined Status for Specific Reference
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-tags-references.getthecombinedstatusforspecificreference
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-commit-statuses-reference
description: GitHub List Commit Statuses for Reference
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-tags-references.listcommitstatusesforreference
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-list-matching-references
description: GitHub List Matching References
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-tags-references.listmatchingreferences
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-get-reference
description: GitHub Get Reference
hints:
readOnly: true
destructive: false
idempotent: true
call: repo-tags-references.getreference
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.
- name: github-create-reference
description: GitHub Create Reference
hints:
readOnly: false
destructive: false
idempotent: false
call: repo-tags-references.createreference
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: github-update-reference
description: GitHub Update Reference
hints:
readOnly: false
destructive: false
idempotent: true
call: repo-tags-references.updatereference
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: github-delete-reference
description: GitHub Delete Reference
hints:
readOnly: false
destructive: true
idempotent: true
call: repo-tags-references.deletereference
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.