GitHub · Capability

GitHub Org API — Labels

GitHub Org API — Labels. 5 operations. Lead operation: GitHub List Labels for Self-hosted Runner for an Organization. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubLabels

What You Can Do

GET
Listlabelsforselfhostedrunnerforanorganization — GitHub List Labels for Self-hosted Runner for an Organization
/v1/orgs/{org}/actions/runners/{runner-id}/labels
POST
Addcustomlabelstoselfhostedrunnerforanorganization — GitHub Add Custom Labels to Self-hosted Runner for an Organization
/v1/orgs/{org}/actions/runners/{runner-id}/labels
PUT
Setcustomlabelsforselfhostedrunnerforanorganization — GitHub Set Custom Labels for Self-hosted Runner for an Organization
/v1/orgs/{org}/actions/runners/{runner-id}/labels
DELETE
Removeallcustomlabelsfromselfhostedrunnerforanorganization — GitHub Remove All Custom Labels from Self-hosted Runner for an Organization
/v1/orgs/{org}/actions/runners/{runner-id}/labels
DELETE
Removecustomlabelfromselfhostedrunnerforanorganization — GitHub Remove Custom Label from Self-hosted Runner for an Organization
/v1/orgs/{org}/actions/runners/{runner-id}/labels/{name}

MCP Tools

github-list-labels-self-hosted

GitHub List Labels for Self-hosted Runner for an Organization

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

GitHub Add Custom Labels to Self-hosted Runner for an Organization

github-set-custom-labels-self

GitHub Set Custom Labels for Self-hosted Runner for an Organization

idempotent
github-remove-all-custom-labels

GitHub Remove All Custom Labels from Self-hosted Runner for an Organization

idempotent
github-remove-custom-label-self

GitHub Remove Custom Label from Self-hosted Runner for an Organization

idempotent

Capability Spec

organizations-labels.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Labels
  description: 'GitHub Org API — Labels. 5 operations. Lead operation: GitHub List Labels for Self-hosted Runner for an Organization.
    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: organizations-labels
    baseUri: ''
    description: GitHub Org API — Labels business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-runners-runner_id-labels
      path: /orgs/{org}/actions/runners/{runner_id}/labels
      operations:
      - name: listlabelsforselfhostedrunnerforanorganization
        method: GET
        description: GitHub List Labels for Self-hosted Runner for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addcustomlabelstoselfhostedrunnerforanorganization
        method: POST
        description: GitHub Add Custom Labels to Self-hosted Runner for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: setcustomlabelsforselfhostedrunnerforanorganization
        method: PUT
        description: GitHub Set Custom Labels for Self-hosted Runner for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: removeallcustomlabelsfromselfhostedrunnerforanorganization
        method: DELETE
        description: GitHub Remove All Custom Labels from Self-hosted Runner for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runners-runner_id-labels-name
      path: /orgs/{org}/actions/runners/{runner_id}/labels/{name}
      operations:
      - name: removecustomlabelfromselfhostedrunnerforanorganization
        method: DELETE
        description: GitHub Remove Custom Label from Self-hosted Runner for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-labels-rest
    port: 8080
    description: REST adapter for GitHub Org API — Labels. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/runners/{runner-id}/labels
      name: orgs-org-actions-runners-runner-id-labels
      description: REST surface for orgs-org-actions-runners-runner_id-labels.
      operations:
      - method: GET
        name: listlabelsforselfhostedrunnerforanorganization
        description: GitHub List Labels for Self-hosted Runner for an Organization
        call: organizations-labels.listlabelsforselfhostedrunnerforanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addcustomlabelstoselfhostedrunnerforanorganization
        description: GitHub Add Custom Labels to Self-hosted Runner for an Organization
        call: organizations-labels.addcustomlabelstoselfhostedrunnerforanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setcustomlabelsforselfhostedrunnerforanorganization
        description: GitHub Set Custom Labels for Self-hosted Runner for an Organization
        call: organizations-labels.setcustomlabelsforselfhostedrunnerforanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeallcustomlabelsfromselfhostedrunnerforanorganization
        description: GitHub Remove All Custom Labels from Self-hosted Runner for an Organization
        call: organizations-labels.removeallcustomlabelsfromselfhostedrunnerforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runners/{runner-id}/labels/{name}
      name: orgs-org-actions-runners-runner-id-labels-name
      description: REST surface for orgs-org-actions-runners-runner_id-labels-name.
      operations:
      - method: DELETE
        name: removecustomlabelfromselfhostedrunnerforanorganization
        description: GitHub Remove Custom Label from Self-hosted Runner for an Organization
        call: organizations-labels.removecustomlabelfromselfhostedrunnerforanorganization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-labels-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Labels. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-list-labels-self-hosted
      description: GitHub List Labels for Self-hosted Runner for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-labels.listlabelsforselfhostedrunnerforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-custom-labels-self
      description: GitHub Add Custom Labels to Self-hosted Runner for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: organizations-labels.addcustomlabelstoselfhostedrunnerforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-custom-labels-self
      description: GitHub Set Custom Labels for Self-hosted Runner for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-labels.setcustomlabelsforselfhostedrunnerforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-all-custom-labels
      description: GitHub Remove All Custom Labels from Self-hosted Runner for an Organization
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-labels.removeallcustomlabelsfromselfhostedrunnerforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-custom-label-self
      description: GitHub Remove Custom Label from Self-hosted Runner for an Organization
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-labels.removecustomlabelfromselfhostedrunnerforanorganization
      outputParameters:
      - type: object
        mapping: $.