GitHub · Capability

github-repo-actions-api — Artifacts

github-repo-actions-api — Artifacts. 5 operations. Lead operation: GitHub List Artifacts for Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubArtifacts

What You Can Do

GET
Listartifactsforrepository — GitHub List Artifacts for Repository
/v1/repos/{owner}/{repo}/actions/artifacts
GET
Getanartifact — GitHub Get an Artifact
/v1/repos/{owner}/{repo}/actions/artifacts/{artifact-id}
DELETE
Deleteanartifact — GitHub Delete an Artifact
/v1/repos/{owner}/{repo}/actions/artifacts/{artifact-id}
GET
Downloadanartifact — GitHub Download an Artifact
/v1/repos/{owner}/{repo}/actions/artifacts/{artifact-id}/{archive-format}
GET
Listworkflowrunartifacts — GitHub List Workflow Run Artifacts
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/artifacts

MCP Tools

github-list-artifacts-repository

GitHub List Artifacts for Repository

read-only idempotent
github-get-artifact

GitHub Get an Artifact

read-only idempotent
github-delete-artifact

GitHub Delete an Artifact

idempotent
github-download-artifact

GitHub Download an Artifact

read-only idempotent
github-list-workflow-run-artifacts

GitHub List Workflow Run Artifacts

read-only idempotent

Capability Spec

repo-actions-artifacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repo-actions-api — Artifacts
  description: 'github-repo-actions-api — Artifacts. 5 operations. Lead operation: GitHub List Artifacts for Repository. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Artifacts
  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-artifacts
    baseUri: ''
    description: github-repo-actions-api — Artifacts business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-actions-artifacts
      path: /repos/{owner}/{repo}/actions/artifacts
      operations:
      - name: listartifactsforrepository
        method: GET
        description: GitHub List Artifacts for Repository
        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-artifacts-artifact_id
      path: /repos/{owner}/{repo}/actions/artifacts/{artifact_id}
      operations:
      - name: getanartifact
        method: GET
        description: GitHub Get an Artifact
        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: deleteanartifact
        method: DELETE
        description: GitHub Delete an Artifact
        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-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-runs-run_id-artifacts
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts
      operations:
      - name: listworkflowrunartifacts
        method: GET
        description: GitHub List Workflow Run Artifacts
        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-artifacts-rest
    port: 8080
    description: REST adapter for github-repo-actions-api — Artifacts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/actions/artifacts
      name: repos-owner-repo-actions-artifacts
      description: REST surface for repos-owner-repo-actions-artifacts.
      operations:
      - method: GET
        name: listartifactsforrepository
        description: GitHub List Artifacts for Repository
        call: repo-actions-artifacts.listartifactsforrepository
        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/artifacts/{artifact-id}
      name: repos-owner-repo-actions-artifacts-artifact-id
      description: REST surface for repos-owner-repo-actions-artifacts-artifact_id.
      operations:
      - method: GET
        name: getanartifact
        description: GitHub Get an Artifact
        call: repo-actions-artifacts.getanartifact
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteanartifact
        description: GitHub Delete an Artifact
        call: repo-actions-artifacts.deleteanartifact
        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/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-artifacts.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/runs/{run-id}/artifacts
      name: repos-owner-repo-actions-runs-run-id-artifacts
      description: REST surface for repos-owner-repo-actions-runs-run_id-artifacts.
      operations:
      - method: GET
        name: listworkflowrunartifacts
        description: GitHub List Workflow Run Artifacts
        call: repo-actions-artifacts.listworkflowrunartifacts
        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-artifacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repo-actions-api — Artifacts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: github-list-artifacts-repository
      description: GitHub List Artifacts for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-actions-artifacts.listartifactsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-artifact
      description: GitHub Get an Artifact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-actions-artifacts.getanartifact
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-artifact
      description: GitHub Delete an Artifact
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-actions-artifacts.deleteanartifact
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-download-artifact
      description: GitHub Download an Artifact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-actions-artifacts.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-list-workflow-run-artifacts
      description: GitHub List Workflow Run Artifacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-actions-artifacts.listworkflowrunartifacts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.