GitHub · Capability

GitHub User API — Installations

GitHub User API — Installations. 4 operations. Lead operation: GitHub List App Installations Accessible to the User Access Token. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubInstallations

What You Can Do

GET
Listappinstallationsaccessibletotheuseraccesstoken — GitHub List App Installations Accessible to the User Access Token
/v1/user/installations
PUT
Addrepositorytoanappinstallation — GitHub Add Repository to an App Installation
/v1/user/installations/{installation-id}/repositories/{repository-id}
DELETE
Removerepositoryfromanappinstallation — GitHub Remove Repository from an App Installation
/v1/user/installations/{installation-id}/repositories/{repository-id}
GET
Getuserinstallationfortheauthenticatedapp — GitHub Get User Installation for the Authenticated App
/v1/users/{username}/installation

MCP Tools

github-list-app-installations-accessible

GitHub List App Installations Accessible to the User Access Token

read-only idempotent
github-add-repository-app-installation

GitHub Add Repository to an App Installation

idempotent
github-remove-repository-app-installation

GitHub Remove Repository from an App Installation

idempotent
github-get-user-installation-authenticated

GitHub Get User Installation for the Authenticated App

read-only idempotent

Capability Spec

users-installations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub User API — Installations
  description: 'GitHub User API — Installations. 4 operations. Lead operation: GitHub List App Installations Accessible to
    the User Access Token. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Installations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: users-installations
    baseUri: ''
    description: GitHub User API — Installations business capability. Self-contained, no shared references.
    resources:
    - 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: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: user-installations-installation_id-repositories-repository_id
      path: /user/installations/{installation_id}/repositories/{repository_id}
      operations:
      - name: addrepositorytoanappinstallation
        method: PUT
        description: GitHub Add Repository to an App Installation
        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: removerepositoryfromanappinstallation
        method: DELETE
        description: GitHub Remove Repository from an App Installation
        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: users-username-installation
      path: /users/{username}/installation
      operations:
      - name: getuserinstallationfortheauthenticatedapp
        method: GET
        description: GitHub Get User Installation for the Authenticated App
        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: users-installations-rest
    port: 8080
    description: REST adapter for GitHub User API — Installations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - 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: users-installations.listappinstallationsaccessibletotheuseraccesstoken
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/user/installations/{installation-id}/repositories/{repository-id}
      name: user-installations-installation-id-repositories-repository-id
      description: REST surface for user-installations-installation_id-repositories-repository_id.
      operations:
      - method: PUT
        name: addrepositorytoanappinstallation
        description: GitHub Add Repository to an App Installation
        call: users-installations.addrepositorytoanappinstallation
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removerepositoryfromanappinstallation
        description: GitHub Remove Repository from an App Installation
        call: users-installations.removerepositoryfromanappinstallation
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{username}/installation
      name: users-username-installation
      description: REST surface for users-username-installation.
      operations:
      - method: GET
        name: getuserinstallationfortheauthenticatedapp
        description: GitHub Get User Installation for the Authenticated App
        call: users-installations.getuserinstallationfortheauthenticatedapp
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: users-installations-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub User API — Installations. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - 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: users-installations.listappinstallationsaccessibletotheuseraccesstoken
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-repository-app-installation
      description: GitHub Add Repository to an App Installation
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: users-installations.addrepositorytoanappinstallation
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-repository-app-installation
      description: GitHub Remove Repository from an App Installation
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: users-installations.removerepositoryfromanappinstallation
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-user-installation-authenticated
      description: GitHub Get User Installation for the Authenticated App
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: users-installations.getuserinstallationfortheauthenticatedapp
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.