CircleCI · Capability

CircleCI REST API v1 — Artifact

CircleCI REST API v1 — Artifact. 2 operations. Lead operation: List latest build artifacts. Self-contained Naftiko capability covering one Circleci business surface.

Run with Naftiko CircleciArtifact

What You Can Do

GET
Listlatestartifacts — List latest build artifacts
/v1/project/{vcs-type}/{username}/{project}/latest/artifacts
GET
Listbuildartifacts — List artifacts for a build
/v1/project/{vcs-type}/{username}/{project}/{build-num}/artifacts

MCP Tools

list-latest-build-artifacts

List latest build artifacts

read-only idempotent
list-artifacts-build

List artifacts for a build

read-only idempotent

Capability Spec

rest-api-v1-artifact.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CircleCI REST API v1 — Artifact
  description: 'CircleCI REST API v1 — Artifact. 2 operations. Lead operation: List latest build artifacts. Self-contained
    Naftiko capability covering one Circleci business surface.'
  tags:
  - Circleci
  - Artifact
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CIRCLECI_API_KEY: CIRCLECI_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-api-v1-artifact
    baseUri: https://circleci.com/api/v1.1
    description: CircleCI REST API v1 — Artifact business capability. Self-contained, no shared references.
    resources:
    - name: project-vcs-type-username-project-latest-artifacts
      path: /project/{vcs-type}/{username}/{project}/latest/artifacts
      operations:
      - name: listlatestartifacts
        method: GET
        description: List latest build artifacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: branch
          in: query
          type: string
          description: Filter artifacts by branch name
        - name: filter
          in: query
          type: string
          description: Filter artifacts by status
    - name: project-vcs-type-username-project-build_num-artifacts
      path: /project/{vcs-type}/{username}/{project}/{build_num}/artifacts
      operations:
      - name: listbuildartifacts
        method: GET
        description: List artifacts for a build
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Circle-Token
      value: '{{env.CIRCLECI_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: rest-api-v1-artifact-rest
    port: 8080
    description: REST adapter for CircleCI REST API v1 — Artifact. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/project/{vcs-type}/{username}/{project}/latest/artifacts
      name: project-vcs-type-username-project-latest-artifacts
      description: REST surface for project-vcs-type-username-project-latest-artifacts.
      operations:
      - method: GET
        name: listlatestartifacts
        description: List latest build artifacts
        call: rest-api-v1-artifact.listlatestartifacts
        with:
          branch: rest.branch
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/project/{vcs-type}/{username}/{project}/{build-num}/artifacts
      name: project-vcs-type-username-project-build-num-artifacts
      description: REST surface for project-vcs-type-username-project-build_num-artifacts.
      operations:
      - method: GET
        name: listbuildartifacts
        description: List artifacts for a build
        call: rest-api-v1-artifact.listbuildartifacts
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-api-v1-artifact-mcp
    port: 9090
    transport: http
    description: MCP adapter for CircleCI REST API v1 — Artifact. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-latest-build-artifacts
      description: List latest build artifacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-api-v1-artifact.listlatestartifacts
      with:
        branch: tools.branch
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: list-artifacts-build
      description: List artifacts for a build
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-api-v1-artifact.listbuildartifacts
      outputParameters:
      - type: object
        mapping: $.