GitHub · Capability

GitHub Repos API — Labels

GitHub Repos API — Labels. 15 operations. Lead operation: List Labels For Self-hosted Runner For Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubLabels

What You Can Do

GET
Listlabelsforselfhostedrunnerforrepository — List Labels For Self-hosted Runner For Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
POST
Addcustomlabelstoselfhostedrunnerforrepository — Add Custom Labels To Self-hosted Runner For Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
PUT
Setcustomlabelsforselfhostedrunnerforrepository — Set Custom Labels For Self-hosted Runner For Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
DELETE
Removeallcustomlabelsfromselfhostedrunnerforrepository — Remove All Custom Labels From Self-hosted Runner For Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
GET
Listlabelsforanissue — List Labels For An Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/labels
POST
Addlabelstoanissue — Add Labels To An Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/labels
PUT
Setlabelsforanissue — Set Labels For An Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/labels
DELETE
Removealllabelsfromanissue — Remove All Labels From An Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/labels
DELETE
Removelabelfromanissue — Remove Label From An Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/labels/{name}
GET
Listlabelsforrepository — List Labels For Repository
/v1/repos/{owner}/{repo}/labels
POST
Createlabel — Create Label
/v1/repos/{owner}/{repo}/labels
GET
Getlabel — Get Label
/v1/repos/{owner}/{repo}/labels/{name}
PATCH
Updatelabel — Update Label
/v1/repos/{owner}/{repo}/labels/{name}
DELETE
Deletelabel — Delete Label
/v1/repos/{owner}/{repo}/labels/{name}
GET
Listlabelsforissuesinmilestone — List Labels For Issues In Milestone
/v1/repos/{owner}/{repo}/milestones/{milestone-number}/labels

MCP Tools

list-labels-self-hosted-runner

List Labels For Self-hosted Runner For Repository

read-only idempotent
add-custom-labels-self-hosted

Add Custom Labels To Self-hosted Runner For Repository

set-custom-labels-self-hosted

Set Custom Labels For Self-hosted Runner For Repository

idempotent
remove-all-custom-labels-self

Remove All Custom Labels From Self-hosted Runner For Repository

idempotent
list-labels-issue

List Labels For An Issue

read-only idempotent
add-labels-issue

Add Labels To An Issue

set-labels-issue

Set Labels For An Issue

idempotent
remove-all-labels-issue

Remove All Labels From An Issue

idempotent
remove-label-issue

Remove Label From An Issue

idempotent
list-labels-repository

List Labels For Repository

read-only idempotent
create-label

Create Label

get-label

Get Label

read-only idempotent
update-label

Update Label

idempotent
delete-label

Delete Label

idempotent
list-labels-issues-milestone

List Labels For Issues In Milestone

read-only idempotent

Capability Spec

temp-labels.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Labels
  description: 'GitHub Repos API — Labels. 15 operations. Lead operation: List Labels For Self-hosted Runner 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: temp-labels
    baseUri: ''
    description: GitHub Repos API — Labels business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-actions-runners-runner_id-labels
      path: /repos/{owner}/{repo}/actions/runners/{runner_id}/labels
      operations:
      - name: listlabelsforselfhostedrunnerforrepository
        method: GET
        description: List Labels For Self-hosted Runner 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: addcustomlabelstoselfhostedrunnerforrepository
        method: POST
        description: Add Custom Labels To Self-hosted Runner 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: setcustomlabelsforselfhostedrunnerforrepository
        method: PUT
        description: Set Custom Labels For Self-hosted Runner 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: removeallcustomlabelsfromselfhostedrunnerforrepository
        method: DELETE
        description: Remove All Custom Labels From Self-hosted Runner 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: repos-owner-repo-issues-issue_number-labels
      path: /repos/{owner}/{repo}/issues/{issue_number}/labels
      operations:
      - name: listlabelsforanissue
        method: GET
        description: List Labels For An Issue
        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: addlabelstoanissue
        method: POST
        description: Add Labels To An Issue
        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: false
      - name: setlabelsforanissue
        method: PUT
        description: Set Labels For An Issue
        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: false
      - name: removealllabelsfromanissue
        method: DELETE
        description: Remove All Labels From An Issue
        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-issues-issue_number-labels-name
      path: /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}
      operations:
      - name: removelabelfromanissue
        method: DELETE
        description: Remove Label From An Issue
        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-labels
      path: /repos/{owner}/{repo}/labels
      operations:
      - name: listlabelsforrepository
        method: GET
        description: 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: 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: 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: 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: 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: 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: temp-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}/actions/runners/{runner-id}/labels
      name: repos-owner-repo-actions-runners-runner-id-labels
      description: REST surface for repos-owner-repo-actions-runners-runner_id-labels.
      operations:
      - method: GET
        name: listlabelsforselfhostedrunnerforrepository
        description: List Labels For Self-hosted Runner For Repository
        call: temp-labels.listlabelsforselfhostedrunnerforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addcustomlabelstoselfhostedrunnerforrepository
        description: Add Custom Labels To Self-hosted Runner For Repository
        call: temp-labels.addcustomlabelstoselfhostedrunnerforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setcustomlabelsforselfhostedrunnerforrepository
        description: Set Custom Labels For Self-hosted Runner For Repository
        call: temp-labels.setcustomlabelsforselfhostedrunnerforrepository
        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: removeallcustomlabelsfromselfhostedrunnerforrepository
        description: Remove All Custom Labels From Self-hosted Runner For Repository
        call: temp-labels.removeallcustomlabelsfromselfhostedrunnerforrepository
        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}/issues/{issue-number}/labels
      name: repos-owner-repo-issues-issue-number-labels
      description: REST surface for repos-owner-repo-issues-issue_number-labels.
      operations:
      - method: GET
        name: listlabelsforanissue
        description: List Labels For An Issue
        call: temp-labels.listlabelsforanissue
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addlabelstoanissue
        description: Add Labels To An Issue
        call: temp-labels.addlabelstoanissue
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setlabelsforanissue
        description: Set Labels For An Issue
        call: temp-labels.setlabelsforanissue
        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: removealllabelsfromanissue
        description: Remove All Labels From An Issue
        call: temp-labels.removealllabelsfromanissue
        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}/issues/{issue-number}/labels/{name}
      name: repos-owner-repo-issues-issue-number-labels-name
      description: REST surface for repos-owner-repo-issues-issue_number-labels-name.
      operations:
      - method: DELETE
        name: removelabelfromanissue
        description: Remove Label From An Issue
        call: temp-labels.removelabelfromanissue
        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}/labels
      name: repos-owner-repo-labels
      description: REST surface for repos-owner-repo-labels.
      operations:
      - method: GET
        name: listlabelsforrepository
        description: List Labels For Repository
        call: temp-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: Create Label
        call: temp-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: Get Label
        call: temp-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: Update Label
        call: temp-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: Delete Label
        call: temp-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: List Labels For Issues In Milestone
        call: temp-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: temp-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: list-labels-self-hosted-runner
      description: List Labels For Self-hosted Runner For Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-labels.listlabelsforselfhostedrunnerforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: add-custom-labels-self-hosted
      description: Add Custom Labels To Self-hosted Runner For Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-labels.addcustomlabelstoselfhostedrunnerforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-custom-labels-self-hosted
      description: Set Custom Labels For Self-hosted Runner For Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-labels.setcustomlabelsforselfhostedrunnerforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-all-custom-labels-self
      description: Remove All Custom Labels From Self-hosted Runner For Repository
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-labels.removeallcustomlabelsfromselfhostedrunnerforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-labels-issue
      description: List Labels For An Issue
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-labels.listlabelsforanissue
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: add-labels-issue
      description: Add Labels To An Issue
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-labels.addlabelstoanissue
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-labels-issue
      description: Set Labels For An Issue
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-labels.setlabelsforanissue
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-all-labels-issue
      description: Remove All Labels From An Issue
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-labels.removealllabelsfromanissue
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-label-issue
      description: Remove Label From An Issue
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-labels.removelabelfromanissue
      with:
        name: tools.name
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-labels-repository
      description: List Labels For Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-labels.listlabelsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: create-label
      description: Create Label
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-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: get-label
      description: Get Label
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-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: update-label
      description: Update Label
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-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: delete-label
      description: Delete Label
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-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: list-labels-issues-milestone
      description: List Labels For Issues In Milestone
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-labels.listlabelsforissuesinmilestone
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.