GitHub · Capability

GitHub Org API — Role

GitHub Org API — Role. 4 operations. Lead operation: GitHub Create Custom Repository Role. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubRole

What You Can Do

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-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-role.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Role
  description: 'GitHub Org API — Role. 4 operations. Lead operation: GitHub Create Custom Repository Role. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Role
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-role
    baseUri: ''
    description: GitHub Org API — Role business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-custom-repository-roles
      path: /orgs/{org}/custom-repository-roles
      operations:
      - 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-role-rest
    port: 8080
    description: REST adapter for GitHub Org API — Role. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/custom-repository-roles
      name: orgs-org-custom-repository-roles
      description: REST surface for orgs-org-custom-repository-roles.
      operations:
      - method: POST
        name: createcustomrepositoryrole
        description: GitHub Create Custom Repository Role
        call: organizations-role.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-role.getcustomrepositoryrole
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecustomrepositoryrole
        description: GitHub Update Custom Repository Role
        call: organizations-role.updatecustomrepositoryrole
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecustomrepositoryrole
        description: GitHub Delete Custom Repository Role
        call: organizations-role.deletecustomrepositoryrole
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-role-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Role. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-create-custom-repository-role
      description: GitHub Create Custom Repository Role
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: organizations-role.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-role.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-role.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-role.deletecustomrepositoryrole
      outputParameters:
      - type: object
        mapping: $.