GitHub · Capability

GitHub Org API — Custom

GitHub Org API — Custom. 10 operations. Lead operation: GitHub Deprecated - List Custom Repository Roles in an Organization. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubCustom

What You Can Do

GET
Deprecatedlistcustomrepositoryrolesinanorganization — GitHub Deprecated - List Custom Repository Roles in an Organization
/v1/organizations/{organization-id}/custom-roles
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}
GET
Listcustomrepositoryrolesinanorganization — GitHub List Custom Repository Roles in an Organization
/v1/orgs/{org}/custom-repository-roles
POST
Createcustomrepositoryrole — GitHub Create Custom Repository Role
/v1/orgs/{org}/custom-repository-roles
GET
Getcustomrepositoryrole — GitHub Get Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
PATCH
Updatecustomrepositoryrole — GitHub Update Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}
DELETE
Deletecustomrepositoryrole — GitHub Delete Custom Repository Role
/v1/orgs/{org}/custom-repository-roles/{role-id}

MCP Tools

github-deprecated-list-custom-repository

GitHub Deprecated - List Custom Repository Roles in 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
github-list-custom-repository-roles

GitHub List Custom Repository Roles in an Organization

read-only idempotent
github-create-custom-repository-role

GitHub Create Custom Repository Role

github-get-custom-repository-role

GitHub Get Custom Repository Role

read-only idempotent
github-update-custom-repository-role

GitHub Update Custom Repository Role

idempotent
github-delete-custom-repository-role

GitHub Delete Custom Repository Role

idempotent

Capability Spec

organizations-custom.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Custom
  description: 'GitHub Org API — Custom. 10 operations. Lead operation: GitHub Deprecated - List Custom Repository Roles in
    an Organization. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Custom
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-custom
    baseUri: ''
    description: GitHub Org API — Custom business capability. Self-contained, no shared references.
    resources:
    - name: organizations-organization_id-custom_roles
      path: /organizations/{organization_id}/custom_roles
      operations:
      - name: deprecatedlistcustomrepositoryrolesinanorganization
        method: GET
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organization_id
          in: path
          type: string
          description: The unique identifier of the organization.
          required: true
    - name: orgs-org-actions-runners-runner_id-labels
      path: /orgs/{org}/actions/runners/{runner_id}/labels
      operations:
      - 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: $.
    - name: orgs-org-custom-repository-roles
      path: /orgs/{org}/custom-repository-roles
      operations:
      - name: listcustomrepositoryrolesinanorganization
        method: GET
        description: GitHub List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcustomrepositoryrole
        method: POST
        description: GitHub Create Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-custom-repository-roles-role_id
      path: /orgs/{org}/custom-repository-roles/{role_id}
      operations:
      - name: getcustomrepositoryrole
        method: GET
        description: GitHub Get Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecustomrepositoryrole
        method: PATCH
        description: GitHub Update Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecustomrepositoryrole
        method: DELETE
        description: GitHub Delete Custom Repository Role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-custom-rest
    port: 8080
    description: REST adapter for GitHub Org API — Custom. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/organizations/{organization-id}/custom-roles
      name: organizations-organization-id-custom-roles
      description: REST surface for organizations-organization_id-custom_roles.
      operations:
      - method: GET
        name: deprecatedlistcustomrepositoryrolesinanorganization
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        call: organizations-custom.deprecatedlistcustomrepositoryrolesinanorganization
        with:
          organization_id: rest.organization_id
        outputParameters:
        - type: object
          mapping: $.
    - 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: POST
        name: addcustomlabelstoselfhostedrunnerforanorganization
        description: GitHub Add Custom Labels to Self-hosted Runner for an Organization
        call: organizations-custom.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-custom.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-custom.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-custom.removecustomlabelfromselfhostedrunnerforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/custom-repository-roles
      name: orgs-org-custom-repository-roles
      description: REST surface for orgs-org-custom-repository-roles.
      operations:
      - method: GET
        name: listcustomrepositoryrolesinanorganization
        description: GitHub List Custom Repository Roles in an Organization
        call: organizations-custom.listcustomrepositoryrolesinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcustomrepositoryrole
        description: GitHub Create Custom Repository Role
        call: organizations-custom.createcustomrepositoryrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/custom-repository-roles/{role-id}
      name: orgs-org-custom-repository-roles-role-id
      description: REST surface for orgs-org-custom-repository-roles-role_id.
      operations:
      - method: GET
        name: getcustomrepositoryrole
        description: GitHub Get Custom Repository Role
        call: organizations-custom.getcustomrepositoryrole
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecustomrepositoryrole
        description: GitHub Update Custom Repository Role
        call: organizations-custom.updatecustomrepositoryrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecustomrepositoryrole
        description: GitHub Delete Custom Repository Role
        call: organizations-custom.deletecustomrepositoryrole
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-custom-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Custom. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-deprecated-list-custom-repository
      description: GitHub Deprecated - List Custom Repository Roles in an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-custom.deprecatedlistcustomrepositoryrolesinanorganization
      with:
        organization_id: tools.organization_id
      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-custom.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-custom.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-custom.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-custom.removecustomlabelfromselfhostedrunnerforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-custom-repository-roles
      description: GitHub List Custom Repository Roles in an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-custom.listcustomrepositoryrolesinanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-custom-repository-role
      description: GitHub Create Custom Repository Role
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: organizations-custom.createcustomrepositoryrole
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-custom-repository-role
      description: GitHub Get Custom Repository Role
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-custom.getcustomrepositoryrole
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-custom-repository-role
      description: GitHub Update Custom Repository Role
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-custom.updatecustomrepositoryrole
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-custom-repository-role
      description: GitHub Delete Custom Repository Role
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-custom.deletecustomrepositoryrole
      outputParameters:
      - type: object
        mapping: $.