naftiko: 1.0.0-alpha2 info: label: github-repo-actions-api — Attempts description: 'github-repo-actions-api — Attempts. 3 operations. Lead operation: GitHub Get Workflow Run Attempt. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Attempts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: repo-actions-attempts baseUri: '' description: github-repo-actions-api — Attempts business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-actions-runs-run_id-attempts-attempt_number path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number} operations: - name: getworkflowrunattempt method: GET description: GitHub Get Workflow Run Attempt 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: repos-owner-repo-actions-runs-run_id-attempts-attempt_number-jobs path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs operations: - name: listjobsforworkflowrunattempt method: GET description: GitHub List Jobs for Workflow Run Attempt 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: repos-owner-repo-actions-runs-run_id-attempts-attempt_number-logs path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs operations: - name: downloadworkflowrunattemptlogs method: GET description: GitHub Download Workflow Run Attempt Logs 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: repo-actions-attempts-rest port: 8080 description: REST adapter for github-repo-actions-api — Attempts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number} name: repos-owner-repo-actions-runs-run-id-attempts-attempt-number description: REST surface for repos-owner-repo-actions-runs-run_id-attempts-attempt_number. operations: - method: GET name: getworkflowrunattempt description: GitHub Get Workflow Run Attempt call: repo-actions-attempts.getworkflowrunattempt with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/jobs name: repos-owner-repo-actions-runs-run-id-attempts-attempt-number-jobs description: REST surface for repos-owner-repo-actions-runs-run_id-attempts-attempt_number-jobs. operations: - method: GET name: listjobsforworkflowrunattempt description: GitHub List Jobs for Workflow Run Attempt call: repo-actions-attempts.listjobsforworkflowrunattempt with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/logs name: repos-owner-repo-actions-runs-run-id-attempts-attempt-number-logs description: REST surface for repos-owner-repo-actions-runs-run_id-attempts-attempt_number-logs. operations: - method: GET name: downloadworkflowrunattemptlogs description: GitHub Download Workflow Run Attempt Logs call: repo-actions-attempts.downloadworkflowrunattemptlogs with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: repo-actions-attempts-mcp port: 9090 transport: http description: MCP adapter for github-repo-actions-api — Attempts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-get-workflow-run-attempt description: GitHub Get Workflow Run Attempt hints: readOnly: true destructive: false idempotent: true call: repo-actions-attempts.getworkflowrunattempt with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-jobs-workflow-run description: GitHub List Jobs for Workflow Run Attempt hints: readOnly: true destructive: false idempotent: true call: repo-actions-attempts.listjobsforworkflowrunattempt with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-download-workflow-run-attempt description: GitHub Download Workflow Run Attempt Logs hints: readOnly: true destructive: false idempotent: true call: repo-actions-attempts.downloadworkflowrunattemptlogs with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.