naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Jobs description: 'GitHub Repos API — Jobs. 6 operations. Lead operation: Get Job For Workflow Run. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Jobs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: temp-jobs baseUri: '' description: GitHub Repos API — Jobs business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-actions-jobs-job_id path: /repos/{owner}/{repo}/actions/jobs/{job_id} operations: - name: getjobforworkflowrun method: GET description: Get Job 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-jobs-job_id-logs path: /repos/{owner}/{repo}/actions/jobs/{job_id}/logs operations: - name: downloadjoblogsforworkflowrun method: GET description: 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-jobs-job_id-rerun path: /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun operations: - name: rerunjobfromworkflowrun method: POST description: Re-run Job From 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: body in: body type: object description: Request body (JSON). required: false - 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: 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-jobs path: /repos/{owner}/{repo}/actions/runs/{run_id}/jobs operations: - name: listjobsforworkflowrun method: GET description: List Jobs For Workflow Run outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: filter in: query type: string description: Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all jobs for workflow ru - 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-rerun-failed-jobs path: /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs operations: - name: rerunfailedjobsfromworkflowrun method: POST description: Re-run Failed Jobs From 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: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: temp-jobs-rest port: 8080 description: REST adapter for GitHub Repos API — Jobs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/actions/jobs/{job-id} name: repos-owner-repo-actions-jobs-job-id description: REST surface for repos-owner-repo-actions-jobs-job_id. operations: - method: GET name: getjobforworkflowrun description: Get Job For Workflow Run call: temp-jobs.getjobforworkflowrun 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/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: Download Job Logs For Workflow Run call: temp-jobs.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/jobs/{job-id}/rerun name: repos-owner-repo-actions-jobs-job-id-rerun description: REST surface for repos-owner-repo-actions-jobs-job_id-rerun. operations: - method: POST name: rerunjobfromworkflowrun description: Re-run Job From Workflow Run call: temp-jobs.rerunjobfromworkflowrun with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body 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: List Jobs For Workflow Run Attempt call: temp-jobs.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}/jobs name: repos-owner-repo-actions-runs-run-id-jobs description: REST surface for repos-owner-repo-actions-runs-run_id-jobs. operations: - method: GET name: listjobsforworkflowrun description: List Jobs For Workflow Run call: temp-jobs.listjobsforworkflowrun with: filter: rest.filter 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}/rerun-failed-jobs name: repos-owner-repo-actions-runs-run-id-rerun-failed-jobs description: REST surface for repos-owner-repo-actions-runs-run_id-rerun-failed-jobs. operations: - method: POST name: rerunfailedjobsfromworkflowrun description: Re-run Failed Jobs From Workflow Run call: temp-jobs.rerunfailedjobsfromworkflowrun with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: temp-jobs-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Jobs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-job-workflow-run description: Get Job For Workflow Run hints: readOnly: true destructive: false idempotent: true call: temp-jobs.getjobforworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: download-job-logs-workflow-run description: Download Job Logs For Workflow Run hints: readOnly: true destructive: false idempotent: true call: temp-jobs.downloadjoblogsforworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: re-run-job-workflow-run description: Re-run Job From Workflow Run hints: readOnly: false destructive: false idempotent: false call: temp-jobs.rerunjobfromworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: list-jobs-workflow-run-attempt description: List Jobs For Workflow Run Attempt hints: readOnly: true destructive: false idempotent: true call: temp-jobs.listjobsforworkflowrunattempt with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: list-jobs-workflow-run description: List Jobs For Workflow Run hints: readOnly: true destructive: false idempotent: true call: temp-jobs.listjobsforworkflowrun with: filter: tools.filter Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: re-run-failed-jobs-workflow description: Re-run Failed Jobs From Workflow Run hints: readOnly: false destructive: false idempotent: false call: temp-jobs.rerunfailedjobsfromworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $.