naftiko: 1.0.0-alpha2 info: label: GitHub Installation API — Tokens description: 'GitHub Installation API — Tokens. 4 operations. Lead operation: GitHub Create an Installation Access Token for an App. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Tokens created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: installation-tokens baseUri: '' description: GitHub Installation API — Tokens 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-tokens-rest port: 8080 description: REST adapter for GitHub Installation API — Tokens. 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-tokens.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-tokens.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-tokens.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-tokens.listrepositoriesaccessibletotheuseraccesstoken outputParameters: - type: object mapping: $. - type: mcp namespace: installation-tokens-mcp port: 9090 transport: http description: MCP adapter for GitHub Installation API — Tokens. 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-tokens.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-tokens.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-tokens.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-tokens.listrepositoriesaccessibletotheuseraccesstoken outputParameters: - type: object mapping: $.