GitHub · Capability

GitHub Installation API — Access

GitHub Installation API — Access. 4 operations. Lead operation: GitHub Create an Installation Access Token for an App. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubAccess

What You Can Do

POST
Createaninstallationaccesstokenforanapp — GitHub Create an Installation Access Token for an App
/v1/app/installations/{installation-id}/access-tokens
DELETE
Revokeaninstallationaccesstoken — GitHub Revoke an Installation Access Token
/v1/installation/token
GET
Listappinstallationsaccessibletotheuseraccesstoken — GitHub List App Installations Accessible to the User Access Token
/v1/user/installations
GET
Listrepositoriesaccessibletotheuseraccesstoken — GitHub List Repositories Accessible to the User Access Token
/v1/user/installations/{installation-id}/repositories

MCP Tools

github-create-installation-access-token

GitHub Create an Installation Access Token for an App

github-revoke-installation-access-token

GitHub Revoke an Installation Access Token

idempotent
github-list-app-installations-accessible

GitHub List App Installations Accessible to the User Access Token

read-only idempotent
github-list-repositories-accessible-user

GitHub List Repositories Accessible to the User Access Token

read-only idempotent

Capability Spec

installation-access.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Installation API — Access
  description: 'GitHub Installation API — Access. 4 operations. Lead operation: GitHub Create an Installation Access Token
    for an App. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Access
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: installation-access
    baseUri: ''
    description: GitHub Installation API — Access business capability. Self-contained, no shared references.
    resources:
    - name: app-installations-installation_id-access_tokens
      path: /app/installations/{installation_id}/access_tokens
      operations:
      - name: createaninstallationaccesstokenforanapp
        method: POST
        description: GitHub Create an Installation Access Token for an App
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: installation-token
      path: /installation/token
      operations:
      - name: revokeaninstallationaccesstoken
        method: DELETE
        description: GitHub Revoke an Installation Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-installations
      path: /user/installations
      operations:
      - name: listappinstallationsaccessibletotheuseraccesstoken
        method: GET
        description: GitHub List App Installations Accessible to the User Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: user-installations-installation_id-repositories
      path: /user/installations/{installation_id}/repositories
      operations:
      - name: listrepositoriesaccessibletotheuseraccesstoken
        method: GET
        description: GitHub List Repositories Accessible to the User Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: installation-access-rest
    port: 8080
    description: REST adapter for GitHub Installation API — Access. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/app/installations/{installation-id}/access-tokens
      name: app-installations-installation-id-access-tokens
      description: REST surface for app-installations-installation_id-access_tokens.
      operations:
      - method: POST
        name: createaninstallationaccesstokenforanapp
        description: GitHub Create an Installation Access Token for an App
        call: installation-access.createaninstallationaccesstokenforanapp
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/installation/token
      name: installation-token
      description: REST surface for installation-token.
      operations:
      - method: DELETE
        name: revokeaninstallationaccesstoken
        description: GitHub Revoke an Installation Access Token
        call: installation-access.revokeaninstallationaccesstoken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/installations
      name: user-installations
      description: REST surface for user-installations.
      operations:
      - method: GET
        name: listappinstallationsaccessibletotheuseraccesstoken
        description: GitHub List App Installations Accessible to the User Access Token
        call: installation-access.listappinstallationsaccessibletotheuseraccesstoken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/installations/{installation-id}/repositories
      name: user-installations-installation-id-repositories
      description: REST surface for user-installations-installation_id-repositories.
      operations:
      - method: GET
        name: listrepositoriesaccessibletotheuseraccesstoken
        description: GitHub List Repositories Accessible to the User Access Token
        call: installation-access.listrepositoriesaccessibletotheuseraccesstoken
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: installation-access-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Installation API — Access. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: github-create-installation-access-token
      description: GitHub Create an Installation Access Token for an App
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: installation-access.createaninstallationaccesstokenforanapp
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-revoke-installation-access-token
      description: GitHub Revoke an Installation Access Token
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: installation-access.revokeaninstallationaccesstoken
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-app-installations-accessible
      description: GitHub List App Installations Accessible to the User Access Token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: installation-access.listappinstallationsaccessibletotheuseraccesstoken
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-repositories-accessible-user
      description: GitHub List Repositories Accessible to the User Access Token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: installation-access.listrepositoriesaccessibletotheuseraccesstoken
      outputParameters:
      - type: object
        mapping: $.