GitHub · Capability
github-repos-api — Git Refs
github-repos-api — Git Refs. 5 operations. Lead operation: GitHub List Matching References. Self-contained Naftiko capability covering one Github business surface.
What You Can Do
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-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 — Git Refs
description: 'github-repos-api — Git Refs. 5 operations. Lead operation: GitHub List Matching References. Self-contained
Naftiko capability covering one Github business surface.'
tags:
- Github
- Git Refs
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
GITHUB_API_KEY: GITHUB_API_KEY
capability:
consumes:
- type: http
namespace: repos-git-refs
baseUri: http://localhost:8080/rest/github-repos-api/1.1.4
description: github-repos-api — Git Refs business capability. Self-contained, no shared references.
resources:
- 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: repos-git-refs-rest
port: 8080
description: REST adapter for github-repos-api — Git Refs. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- 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: repos-git-refs.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: repos-git-refs.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: repos-git-refs.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: repos-git-refs.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: repos-git-refs.deletereference
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: repos-git-refs-mcp
port: 9090
transport: http
description: MCP adapter for github-repos-api — Git Refs. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: github-list-matching-references
description: GitHub List Matching References
hints:
readOnly: true
destructive: false
idempotent: true
call: repos-git-refs.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: repos-git-refs.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: repos-git-refs.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: repos-git-refs.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: repos-git-refs.deletereference
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
outputParameters:
- type: object
mapping: $.