GitHub · Capability

GitHub Repos API — Artifacts

GitHub Repos API — Artifacts. 5 operations. Lead operation: List Artifacts For Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubArtifacts

What You Can Do

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

MCP Tools

list-artifacts-repository

List Artifacts For Repository

read-only idempotent
get-artifact

Get An Artifact

read-only idempotent
delete-artifact

Delete An Artifact

idempotent
download-artifact

Download An Artifact

read-only idempotent
list-workflow-run-artifacts

List Workflow Run Artifacts

read-only idempotent

Capability Spec

temp-artifacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Artifacts
  description: 'GitHub Repos API — Artifacts. 5 operations. Lead operation: 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: temp-artifacts
    baseUri: ''
    description: GitHub Repos 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: 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: 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: 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: 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: 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: temp-artifacts-rest
    port: 8080
    description: REST adapter for GitHub Repos 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: List Artifacts For Repository
        call: temp-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: Get An Artifact
        call: temp-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: Delete An Artifact
        call: temp-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: Download An Artifact
        call: temp-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: List Workflow Run Artifacts
        call: temp-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: temp-artifacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Artifacts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-artifacts-repository
      description: List Artifacts For Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-artifacts.listartifactsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: get-artifact
      description: Get An Artifact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-artifacts.getanartifact
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-artifact
      description: Delete An Artifact
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-artifacts.deleteanartifact
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: download-artifact
      description: Download An Artifact
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-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: list-workflow-run-artifacts
      description: List Workflow Run Artifacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-artifacts.listworkflowrunartifacts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.