GitHub · Capability

github-repos-api — Labels

github-repos-api — Labels. 6 operations. Lead operation: GitHub List Labels for Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubLabels

What You Can Do

GET
Listlabelsforrepository — GitHub List Labels for Repository
/v1/repos/{owner}/{repo}/labels
POST
Createlabel — GitHub Create Label
/v1/repos/{owner}/{repo}/labels
GET
Getlabel — GitHub Get Label
/v1/repos/{owner}/{repo}/labels/{name}
PATCH
Updatelabel — GitHub Update Label
/v1/repos/{owner}/{repo}/labels/{name}
DELETE
Deletelabel — GitHub Delete Label
/v1/repos/{owner}/{repo}/labels/{name}
GET
Listlabelsforissuesinmilestone — GitHub List Labels for Issues in Milestone
/v1/repos/{owner}/{repo}/milestones/{milestone-number}/labels

MCP Tools

github-list-labels-repository

GitHub List Labels for Repository

read-only idempotent
github-create-label

GitHub Create Label

github-get-label

GitHub Get Label

read-only idempotent
github-update-label

GitHub Update Label

idempotent
github-delete-label

GitHub Delete Label

idempotent
github-list-labels-issues-milestone

GitHub List Labels for Issues in Milestone

read-only idempotent

Capability Spec

repo-tags-labels.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Labels
  description: 'github-repos-api — Labels. 6 operations. Lead operation: GitHub List Labels for Repository. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Labels
  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-labels
    baseUri: ''
    description: github-repos-api — Labels business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-labels
      path: /repos/{owner}/{repo}/labels
      operations:
      - name: listlabelsforrepository
        method: GET
        description: GitHub List Labels for Repository
        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: createlabel
        method: POST
        description: GitHub Create Label
        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-labels-name
      path: /repos/{owner}/{repo}/labels/{name}
      operations:
      - name: getlabel
        method: GET
        description: GitHub Get Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: updatelabel
        method: PATCH
        description: GitHub Update Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - 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: false
      - name: deletelabel
        method: DELETE
        description: GitHub Delete Label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
        - 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-milestones-milestone_number-labels
      path: /repos/{owner}/{repo}/milestones/{milestone_number}/labels
      operations:
      - name: listlabelsforissuesinmilestone
        method: GET
        description: GitHub List Labels for Issues in Milestone
        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-labels-rest
    port: 8080
    description: REST adapter for github-repos-api — Labels. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/labels
      name: repos-owner-repo-labels
      description: REST surface for repos-owner-repo-labels.
      operations:
      - method: GET
        name: listlabelsforrepository
        description: GitHub List Labels for Repository
        call: repo-tags-labels.listlabelsforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createlabel
        description: GitHub Create Label
        call: repo-tags-labels.createlabel
        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}/labels/{name}
      name: repos-owner-repo-labels-name
      description: REST surface for repos-owner-repo-labels-name.
      operations:
      - method: GET
        name: getlabel
        description: GitHub Get Label
        call: repo-tags-labels.getlabel
        with:
          name: rest.name
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatelabel
        description: GitHub Update Label
        call: repo-tags-labels.updatelabel
        with:
          name: rest.name
          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: deletelabel
        description: GitHub Delete Label
        call: repo-tags-labels.deletelabel
        with:
          name: rest.name
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/milestones/{milestone-number}/labels
      name: repos-owner-repo-milestones-milestone-number-labels
      description: REST surface for repos-owner-repo-milestones-milestone_number-labels.
      operations:
      - method: GET
        name: listlabelsforissuesinmilestone
        description: GitHub List Labels for Issues in Milestone
        call: repo-tags-labels.listlabelsforissuesinmilestone
        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-labels-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Labels. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-list-labels-repository
      description: GitHub List Labels for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-labels.listlabelsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-label
      description: GitHub Create Label
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-tags-labels.createlabel
      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-get-label
      description: GitHub Get Label
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-labels.getlabel
      with:
        name: tools.name
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-label
      description: GitHub Update Label
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-tags-labels.updatelabel
      with:
        name: tools.name
        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-label
      description: GitHub Delete Label
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-tags-labels.deletelabel
      with:
        name: tools.name
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-labels-issues-milestone
      description: GitHub List Labels for Issues in Milestone
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-labels.listlabelsforissuesinmilestone
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.