naftiko: 1.0.0-alpha2 info: label: github-repo-actions-api — Download description: 'github-repo-actions-api — Download. 4 operations. Lead operation: GitHub Download an Artifact. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Download 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-download baseUri: '' description: github-repo-actions-api — Download business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-actions-artifacts-artifact_id-archive_format path: /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format} operations: - name: downloadanartifact method: GET description: GitHub Download an Artifact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: archive_format in: path type: string required: true - 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-jobs-job_id-logs path: /repos/{owner}/{repo}/actions/jobs/{job_id}/logs operations: - name: downloadjoblogsforworkflowrun method: GET description: GitHub Download Job Logs for Workflow Run 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 - name: repos-owner-repo-actions-runs-run_id-logs path: /repos/{owner}/{repo}/actions/runs/{run_id}/logs operations: - name: downloadworkflowrunlogs method: GET description: GitHub Download Workflow Run 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-download-rest port: 8080 description: REST adapter for github-repo-actions-api — Download. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/actions/artifacts/{artifact-id}/{archive-format} name: repos-owner-repo-actions-artifacts-artifact-id-archive-format description: REST surface for repos-owner-repo-actions-artifacts-artifact_id-archive_format. operations: - method: GET name: downloadanartifact description: GitHub Download an Artifact call: repo-actions-download.downloadanartifact with: archive_format: rest.archive_format 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/jobs/{job-id}/logs name: repos-owner-repo-actions-jobs-job-id-logs description: REST surface for repos-owner-repo-actions-jobs-job_id-logs. operations: - method: GET name: downloadjoblogsforworkflowrun description: GitHub Download Job Logs for Workflow Run call: repo-actions-download.downloadjoblogsforworkflowrun 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-download.downloadworkflowrunattemptlogs 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}/logs name: repos-owner-repo-actions-runs-run-id-logs description: REST surface for repos-owner-repo-actions-runs-run_id-logs. operations: - method: GET name: downloadworkflowrunlogs description: GitHub Download Workflow Run Logs call: repo-actions-download.downloadworkflowrunlogs 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-download-mcp port: 9090 transport: http description: MCP adapter for github-repo-actions-api — Download. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-download-artifact description: GitHub Download an Artifact hints: readOnly: true destructive: false idempotent: true call: repo-actions-download.downloadanartifact with: archive_format: tools.archive_format Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-download-job-logs-workflow description: GitHub Download Job Logs for Workflow Run hints: readOnly: true destructive: false idempotent: true call: repo-actions-download.downloadjoblogsforworkflowrun 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-download.downloadworkflowrunattemptlogs 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-logs description: GitHub Download Workflow Run Logs hints: readOnly: true destructive: false idempotent: true call: repo-actions-download.downloadworkflowrunlogs with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.