GitLab CI/CD · Capability

GitLab API — project_snapshots

GitLab API — project_snapshots. 1 operations. Lead operation: Download a (possibly inconsistent) snapshot of a repository. Self-contained Naftiko capability covering one Gitlab Ci business surface.

Run with Naftiko Gitlab Ciproject_snapshots

What You Can Do

GET
Getapiv4projectsidsnapshot — Download a (possibly inconsistent) snapshot of a repository
/v1/api/v4/projects/{id}/snapshot

MCP Tools

download-possibly-inconsistent-snapshot-repository

Download a (possibly inconsistent) snapshot of a repository

read-only idempotent

Capability Spec

gitlab-ci-project-snapshots.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitLab API — project_snapshots
  description: 'GitLab API — project_snapshots. 1 operations. Lead operation: Download a (possibly inconsistent) snapshot
    of a repository. Self-contained Naftiko capability covering one Gitlab Ci business surface.'
  tags:
  - Gitlab Ci
  - project_snapshots
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITLAB_CI_API_KEY: GITLAB_CI_API_KEY
capability:
  consumes:
  - type: http
    namespace: gitlab-ci-project-snapshots
    baseUri: https://gitlab.com
    description: GitLab API — project_snapshots business capability. Self-contained, no shared references.
    resources:
    - name: api-v4-projects-id-snapshot
      path: /api/v4/projects/{id}/snapshot
      operations:
      - name: getapiv4projectsidsnapshot
        method: GET
        description: Download a (possibly inconsistent) snapshot of a repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: wiki
          in: query
          type: boolean
          description: Set to true to receive the wiki repository
        - name: id
          in: path
          type: integer
          required: true
  exposes:
  - type: rest
    namespace: gitlab-ci-project-snapshots-rest
    port: 8080
    description: REST adapter for GitLab API — project_snapshots. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v4/projects/{id}/snapshot
      name: api-v4-projects-id-snapshot
      description: REST surface for api-v4-projects-id-snapshot.
      operations:
      - method: GET
        name: getapiv4projectsidsnapshot
        description: Download a (possibly inconsistent) snapshot of a repository
        call: gitlab-ci-project-snapshots.getapiv4projectsidsnapshot
        with:
          wiki: rest.wiki
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gitlab-ci-project-snapshots-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitLab API — project_snapshots. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: download-possibly-inconsistent-snapshot-repository
      description: Download a (possibly inconsistent) snapshot of a repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gitlab-ci-project-snapshots.getapiv4projectsidsnapshot
      with:
        wiki: tools.wiki
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.