GitHub · Capability

GitHub Repos API — Attempts

GitHub Repos API — Attempts. 3 operations. Lead operation: Get Workflow Run Attempt. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubAttempts

What You Can Do

GET
Getworkflowrunattempt — Get Workflow Run Attempt
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}
GET
Listjobsforworkflowrunattempt — List Jobs For Workflow Run Attempt
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/jobs
GET
Downloadworkflowrunattemptlogs — Download Workflow Run Attempt Logs
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/logs

MCP Tools

get-workflow-run-attempt

Get Workflow Run Attempt

read-only idempotent
list-jobs-workflow-run-attempt

List Jobs For Workflow Run Attempt

read-only idempotent
download-workflow-run-attempt-logs

Download Workflow Run Attempt Logs

read-only idempotent

Capability Spec

temp-attempts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Attempts
  description: 'GitHub Repos API — Attempts. 3 operations. Lead operation: 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: temp-attempts
    baseUri: ''
    description: GitHub Repos 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: 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: 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: 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: temp-attempts-rest
    port: 8080
    description: REST adapter for GitHub Repos 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: Get Workflow Run Attempt
        call: temp-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: List Jobs For Workflow Run Attempt
        call: temp-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: Download Workflow Run Attempt Logs
        call: temp-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: temp-attempts-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Attempts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-workflow-run-attempt
      description: Get Workflow Run Attempt
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-attempts.getworkflowrunattempt
      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-attempt
      description: List Jobs For Workflow Run Attempt
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-attempts.listjobsforworkflowrunattempt
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: download-workflow-run-attempt-logs
      description: Download Workflow Run Attempt Logs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-attempts.downloadworkflowrunattemptlogs
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.