naftiko: 1.0.0-alpha2 info: label: GitHub Application API — Applications description: 'GitHub Application API — Applications. 21 operations. Lead operation: GitHub Get the Authenticated App. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Applications created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: app-applications baseUri: '' description: GitHub Application API — Applications business capability. Self-contained, no shared references. resources: - name: app path: /app operations: - name: gettheauthenticatedapp method: GET description: GitHub Get the Authenticated App outputRawFormat: json outputParameters: - name: result type: object value: $. - name: app-manifests-code-conversions path: /app-manifests/{code}/conversions operations: - name: creategithubappfrommanifest method: POST description: GitHub Creategithub App Frommanifest outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: code in: path type: string required: true - name: app-hook-config path: /app/hook/config operations: - name: getwebhookconfigurationforanapp method: GET description: GitHub Getwebhook Configuration for an App outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatewebhookconfigurationforanapp method: PATCH description: GitHub Updatewebhook Configuration for an App outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: app-hook-deliveries path: /app/hook/deliveries operations: - name: listdeliveriesforanappwebhook method: GET description: GitHub List Deliveries for an App Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: redelivery in: query type: boolean - name: app-hook-deliveries-delivery_id path: /app/hook/deliveries/{delivery_id} operations: - name: getdeliveryforanappwebhook method: GET description: GitHub Getdelivery for an App Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. - name: app-hook-deliveries-delivery_id-attempts path: /app/hook/deliveries/{delivery_id}/attempts operations: - name: redeliverdeliveryforanappwebhook method: POST description: GitHub Redeliverdelivery for an App Webhook outputRawFormat: json outputParameters: - name: result type: object value: $. - name: app-installation-requests path: /app/installation-requests operations: - name: listinstallationrequestsfortheauthenticatedapp method: GET description: GitHub List Installation Requests for the Authenticated App outputRawFormat: json outputParameters: - name: result type: object value: $. - name: app-installations path: /app/installations operations: - name: listinstallationsfortheauthenticatedapp method: GET description: GitHub List Installations for the Authenticated App outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: outdated in: query type: string - name: app-installations-installation_id path: /app/installations/{installation_id} operations: - name: getaninstallationfortheauthenticatedapp method: GET description: GitHub Get an Installation for the Authenticated App outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteaninstallationfortheauthenticatedapp method: DELETE description: GitHub Delete an Installation for the Authenticated App outputRawFormat: json outputParameters: - name: result type: object value: $. - 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: app-installations-installation_id-suspended path: /app/installations/{installation_id}/suspended operations: - name: suspendanappinstallation method: PUT description: GitHub Suspend an App Installation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: unsuspendanappinstallation method: DELETE description: GitHub Unsuspend an App Installation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: applications-client_id-grant path: /applications/{client_id}/grant operations: - name: deleteanappauthorization method: DELETE description: GitHub Delete an App Authorization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: applications-client_id-token path: /applications/{client_id}/token operations: - name: deleteanapptoken method: DELETE description: GitHub Delete an App Token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: apps-app_slug path: /apps/{app_slug} operations: - name: getanapp method: GET description: GitHub Get an App outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repos-owner-repo-branches-branch-protection-restrictions-apps path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps operations: - name: getappswithaccesstotheprotectedbranch method: GET description: GitHub Get Apps with Access to the Protected Branch outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addappaccessrestrictions method: POST description: GitHub Add App Access Restrictions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: setappaccessrestrictions method: PUT description: GitHub Set App Access Restrictions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: removeappaccessrestrictions method: DELETE description: GitHub Remove App Access Restrictions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: app-applications-rest port: 8080 description: REST adapter for GitHub Application API — Applications. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/app name: app description: REST surface for app. operations: - method: GET name: gettheauthenticatedapp description: GitHub Get the Authenticated App call: app-applications.gettheauthenticatedapp outputParameters: - type: object mapping: $. - path: /v1/app-manifests/{code}/conversions name: app-manifests-code-conversions description: REST surface for app-manifests-code-conversions. operations: - method: POST name: creategithubappfrommanifest description: GitHub Creategithub App Frommanifest call: app-applications.creategithubappfrommanifest with: code: rest.code outputParameters: - type: object mapping: $. - path: /v1/app/hook/config name: app-hook-config description: REST surface for app-hook-config. operations: - method: GET name: getwebhookconfigurationforanapp description: GitHub Getwebhook Configuration for an App call: app-applications.getwebhookconfigurationforanapp outputParameters: - type: object mapping: $. - method: PATCH name: updatewebhookconfigurationforanapp description: GitHub Updatewebhook Configuration for an App call: app-applications.updatewebhookconfigurationforanapp with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/app/hook/deliveries name: app-hook-deliveries description: REST surface for app-hook-deliveries. operations: - method: GET name: listdeliveriesforanappwebhook description: GitHub List Deliveries for an App Webhook call: app-applications.listdeliveriesforanappwebhook with: redelivery: rest.redelivery outputParameters: - type: object mapping: $. - path: /v1/app/hook/deliveries/{delivery-id} name: app-hook-deliveries-delivery-id description: REST surface for app-hook-deliveries-delivery_id. operations: - method: GET name: getdeliveryforanappwebhook description: GitHub Getdelivery for an App Webhook call: app-applications.getdeliveryforanappwebhook outputParameters: - type: object mapping: $. - path: /v1/app/hook/deliveries/{delivery-id}/attempts name: app-hook-deliveries-delivery-id-attempts description: REST surface for app-hook-deliveries-delivery_id-attempts. operations: - method: POST name: redeliverdeliveryforanappwebhook description: GitHub Redeliverdelivery for an App Webhook call: app-applications.redeliverdeliveryforanappwebhook outputParameters: - type: object mapping: $. - path: /v1/app/installation-requests name: app-installation-requests description: REST surface for app-installation-requests. operations: - method: GET name: listinstallationrequestsfortheauthenticatedapp description: GitHub List Installation Requests for the Authenticated App call: app-applications.listinstallationrequestsfortheauthenticatedapp outputParameters: - type: object mapping: $. - path: /v1/app/installations name: app-installations description: REST surface for app-installations. operations: - method: GET name: listinstallationsfortheauthenticatedapp description: GitHub List Installations for the Authenticated App call: app-applications.listinstallationsfortheauthenticatedapp with: outdated: rest.outdated outputParameters: - type: object mapping: $. - path: /v1/app/installations/{installation-id} name: app-installations-installation-id description: REST surface for app-installations-installation_id. operations: - method: GET name: getaninstallationfortheauthenticatedapp description: GitHub Get an Installation for the Authenticated App call: app-applications.getaninstallationfortheauthenticatedapp outputParameters: - type: object mapping: $. - method: DELETE name: deleteaninstallationfortheauthenticatedapp description: GitHub Delete an Installation for the Authenticated App call: app-applications.deleteaninstallationfortheauthenticatedapp outputParameters: - type: object mapping: $. - 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: app-applications.createaninstallationaccesstokenforanapp with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/app/installations/{installation-id}/suspended name: app-installations-installation-id-suspended description: REST surface for app-installations-installation_id-suspended. operations: - method: PUT name: suspendanappinstallation description: GitHub Suspend an App Installation call: app-applications.suspendanappinstallation outputParameters: - type: object mapping: $. - method: DELETE name: unsuspendanappinstallation description: GitHub Unsuspend an App Installation call: app-applications.unsuspendanappinstallation outputParameters: - type: object mapping: $. - path: /v1/applications/{client-id}/grant name: applications-client-id-grant description: REST surface for applications-client_id-grant. operations: - method: DELETE name: deleteanappauthorization description: GitHub Delete an App Authorization call: app-applications.deleteanappauthorization with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/applications/{client-id}/token name: applications-client-id-token description: REST surface for applications-client_id-token. operations: - method: DELETE name: deleteanapptoken description: GitHub Delete an App Token call: app-applications.deleteanapptoken with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/apps/{app-slug} name: apps-app-slug description: REST surface for apps-app_slug. operations: - method: GET name: getanapp description: GitHub Get an App call: app-applications.getanapp outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps name: repos-owner-repo-branches-branch-protection-restrictions-apps description: REST surface for repos-owner-repo-branches-branch-protection-restrictions-apps. operations: - method: GET name: getappswithaccesstotheprotectedbranch description: GitHub Get Apps with Access to the Protected Branch call: app-applications.getappswithaccesstotheprotectedbranch outputParameters: - type: object mapping: $. - method: POST name: addappaccessrestrictions description: GitHub Add App Access Restrictions call: app-applications.addappaccessrestrictions with: body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: setappaccessrestrictions description: GitHub Set App Access Restrictions call: app-applications.setappaccessrestrictions with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removeappaccessrestrictions description: GitHub Remove App Access Restrictions call: app-applications.removeappaccessrestrictions with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: app-applications-mcp port: 9090 transport: http description: MCP adapter for GitHub Application API — Applications. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-get-authenticated-app description: GitHub Get the Authenticated App hints: readOnly: true destructive: false idempotent: true call: app-applications.gettheauthenticatedapp outputParameters: - type: object mapping: $. - name: github-creategithub-app-frommanifest description: GitHub Creategithub App Frommanifest hints: readOnly: false destructive: false idempotent: false call: app-applications.creategithubappfrommanifest with: code: tools.code outputParameters: - type: object mapping: $. - name: github-getwebhook-configuration-app description: GitHub Getwebhook Configuration for an App hints: readOnly: true destructive: false idempotent: true call: app-applications.getwebhookconfigurationforanapp outputParameters: - type: object mapping: $. - name: github-updatewebhook-configuration-app description: GitHub Updatewebhook Configuration for an App hints: readOnly: false destructive: false idempotent: true call: app-applications.updatewebhookconfigurationforanapp with: body: tools.body outputParameters: - type: object mapping: $. - name: github-list-deliveries-app-webhook description: GitHub List Deliveries for an App Webhook hints: readOnly: true destructive: false idempotent: true call: app-applications.listdeliveriesforanappwebhook with: redelivery: tools.redelivery outputParameters: - type: object mapping: $. - name: github-getdelivery-app-webhook description: GitHub Getdelivery for an App Webhook hints: readOnly: true destructive: false idempotent: true call: app-applications.getdeliveryforanappwebhook outputParameters: - type: object mapping: $. - name: github-redeliverdelivery-app-webhook description: GitHub Redeliverdelivery for an App Webhook hints: readOnly: false destructive: false idempotent: false call: app-applications.redeliverdeliveryforanappwebhook outputParameters: - type: object mapping: $. - name: github-list-installation-requests-authenticated description: GitHub List Installation Requests for the Authenticated App hints: readOnly: true destructive: false idempotent: true call: app-applications.listinstallationrequestsfortheauthenticatedapp outputParameters: - type: object mapping: $. - name: github-list-installations-authenticated-app description: GitHub List Installations for the Authenticated App hints: readOnly: true destructive: false idempotent: true call: app-applications.listinstallationsfortheauthenticatedapp with: outdated: tools.outdated outputParameters: - type: object mapping: $. - name: github-get-installation-authenticated-app description: GitHub Get an Installation for the Authenticated App hints: readOnly: true destructive: false idempotent: true call: app-applications.getaninstallationfortheauthenticatedapp outputParameters: - type: object mapping: $. - name: github-delete-installation-authenticated-app description: GitHub Delete an Installation for the Authenticated App hints: readOnly: false destructive: true idempotent: true call: app-applications.deleteaninstallationfortheauthenticatedapp outputParameters: - type: object mapping: $. - name: github-create-installation-access-token description: GitHub Create an Installation Access Token for an App hints: readOnly: false destructive: false idempotent: false call: app-applications.createaninstallationaccesstokenforanapp with: body: tools.body outputParameters: - type: object mapping: $. - name: github-suspend-app-installation description: GitHub Suspend an App Installation hints: readOnly: false destructive: false idempotent: true call: app-applications.suspendanappinstallation outputParameters: - type: object mapping: $. - name: github-unsuspend-app-installation description: GitHub Unsuspend an App Installation hints: readOnly: false destructive: true idempotent: true call: app-applications.unsuspendanappinstallation outputParameters: - type: object mapping: $. - name: github-delete-app-authorization description: GitHub Delete an App Authorization hints: readOnly: false destructive: true idempotent: true call: app-applications.deleteanappauthorization with: body: tools.body outputParameters: - type: object mapping: $. - name: github-delete-app-token description: GitHub Delete an App Token hints: readOnly: false destructive: true idempotent: true call: app-applications.deleteanapptoken with: body: tools.body outputParameters: - type: object mapping: $. - name: github-get-app description: GitHub Get an App hints: readOnly: true destructive: false idempotent: true call: app-applications.getanapp outputParameters: - type: object mapping: $. - name: github-get-apps-access-protected description: GitHub Get Apps with Access to the Protected Branch hints: readOnly: true destructive: false idempotent: true call: app-applications.getappswithaccesstotheprotectedbranch outputParameters: - type: object mapping: $. - name: github-add-app-access-restrictions description: GitHub Add App Access Restrictions hints: readOnly: false destructive: false idempotent: false call: app-applications.addappaccessrestrictions with: body: tools.body outputParameters: - type: object mapping: $. - name: github-set-app-access-restrictions description: GitHub Set App Access Restrictions hints: readOnly: false destructive: false idempotent: true call: app-applications.setappaccessrestrictions with: body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-app-access-restrictions description: GitHub Remove App Access Restrictions hints: readOnly: false destructive: true idempotent: true call: app-applications.removeappaccessrestrictions with: body: tools.body outputParameters: - type: object mapping: $.