naftiko: 1.0.0-alpha2 info: label: GitHub Application API — Webhooks description: 'GitHub Application API — Webhooks. 5 operations. Lead operation: GitHub Getwebhook Configuration for an App. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: app-webhooks baseUri: '' description: GitHub Application API — Webhooks business capability. Self-contained, no shared references. resources: - 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: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: app-webhooks-rest port: 8080 description: REST adapter for GitHub Application API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - 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-webhooks.getwebhookconfigurationforanapp outputParameters: - type: object mapping: $. - method: PATCH name: updatewebhookconfigurationforanapp description: GitHub Updatewebhook Configuration for an App call: app-webhooks.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-webhooks.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-webhooks.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-webhooks.redeliverdeliveryforanappwebhook outputParameters: - type: object mapping: $. - type: mcp namespace: app-webhooks-mcp port: 9090 transport: http description: MCP adapter for GitHub Application API — Webhooks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-getwebhook-configuration-app description: GitHub Getwebhook Configuration for an App hints: readOnly: true destructive: false idempotent: true call: app-webhooks.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-webhooks.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-webhooks.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-webhooks.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-webhooks.redeliverdeliveryforanappwebhook outputParameters: - type: object mapping: $.