naftiko: 1.0.0-alpha2 info: label: GitHub Actions API — Artifacts description: 'GitHub Actions API — Artifacts. 5 operations. Lead operation: Github Actions List Artifacts for a Repository. Self-contained Naftiko capability covering one Github Actions business surface.' tags: - Github Actions - Artifacts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_ACTIONS_API_KEY: GITHUB_ACTIONS_API_KEY capability: consumes: - type: http namespace: github-actions-artifacts baseUri: https://api.github.com description: GitHub 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: listartifactsforrepo method: GET description: Github Actions List Artifacts for a Repository outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: query type: string - name: repos-owner-repo-actions-artifacts-artifact_id path: /repos/{owner}/{repo}/actions/artifacts/{artifact_id} operations: - name: getartifact method: GET description: Github Actions Get an Artifact outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteartifact method: DELETE description: Github Actions Delete an Artifact outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repos-owner-repo-actions-artifacts-artifact_id-archive_format path: /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format} operations: - name: downloadartifact method: GET description: Github Actions Download an Artifact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: archive_format in: path type: string required: true - 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 Actions List Workflow Run Artifacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: query type: string authentication: type: bearer token: '{{env.GITHUB_ACTIONS_API_KEY}}' exposes: - type: rest namespace: github-actions-artifacts-rest port: 8080 description: REST adapter for GitHub 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: listartifactsforrepo description: Github Actions List Artifacts for a Repository call: github-actions-artifacts.listartifactsforrepo with: name: rest.name 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: getartifact description: Github Actions Get an Artifact call: github-actions-artifacts.getartifact outputParameters: - type: object mapping: $. - method: DELETE name: deleteartifact description: Github Actions Delete an Artifact call: github-actions-artifacts.deleteartifact 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: downloadartifact description: Github Actions Download an Artifact call: github-actions-artifacts.downloadartifact with: archive_format: rest.archive_format 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 Actions List Workflow Run Artifacts call: github-actions-artifacts.listworkflowrunartifacts with: name: rest.name outputParameters: - type: object mapping: $. - type: mcp namespace: github-actions-artifacts-mcp port: 9090 transport: http description: MCP adapter for GitHub Actions API — Artifacts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-actions-list-artifacts-repository description: Github Actions List Artifacts for a Repository hints: readOnly: true destructive: false idempotent: true call: github-actions-artifacts.listartifactsforrepo with: name: tools.name outputParameters: - type: object mapping: $. - name: github-actions-get-artifact description: Github Actions Get an Artifact hints: readOnly: true destructive: false idempotent: true call: github-actions-artifacts.getartifact outputParameters: - type: object mapping: $. - name: github-actions-delete-artifact description: Github Actions Delete an Artifact hints: readOnly: false destructive: true idempotent: true call: github-actions-artifacts.deleteartifact outputParameters: - type: object mapping: $. - name: github-actions-download-artifact description: Github Actions Download an Artifact hints: readOnly: true destructive: false idempotent: true call: github-actions-artifacts.downloadartifact with: archive_format: tools.archive_format outputParameters: - type: object mapping: $. - name: github-actions-list-workflow-run description: Github Actions List Workflow Run Artifacts hints: readOnly: true destructive: false idempotent: true call: github-actions-artifacts.listworkflowrunartifacts with: name: tools.name outputParameters: - type: object mapping: $.