naftiko: 1.0.0-alpha2 info: label: CircleCI REST API V2 — Pipeline description: 'CircleCI REST API V2 — Pipeline. 3 operations. Lead operation: Continue a pipeline. Self-contained Naftiko capability covering one Circlecis business surface.' tags: - Circlecis - Pipeline created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CIRCLECIS_API_KEY: CIRCLECIS_API_KEY capability: consumes: - type: http namespace: circlecis-pipeline baseUri: https://circleci.com/api/v2 description: CircleCI REST API V2 — Pipeline business capability. Self-contained, no shared references. resources: - name: pipeline-continue path: /pipeline/continue operations: - name: continuepipeline method: POST description: Continue a pipeline outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: pipeline-pipeline-id path: /pipeline/{pipeline-id} operations: - name: getpipeline method: GET description: Get pipeline by ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pipeline-id in: path type: string required: true - name: project-project-slug-pipeline path: /project/{project-slug}/pipeline operations: - name: triggerpipeline method: POST description: Trigger a new pipeline outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: project-slug in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Circle-Token value: '{{env.CIRCLECIS_API_KEY}}' placement: header exposes: - type: rest namespace: circlecis-pipeline-rest port: 8080 description: REST adapter for CircleCI REST API V2 — Pipeline. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/pipeline/continue name: pipeline-continue description: REST surface for pipeline-continue. operations: - method: POST name: continuepipeline description: Continue a pipeline call: circlecis-pipeline.continuepipeline with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/pipeline/{pipeline-id} name: pipeline-pipeline-id description: REST surface for pipeline-pipeline-id. operations: - method: GET name: getpipeline description: Get pipeline by ID call: circlecis-pipeline.getpipeline with: pipeline-id: rest.pipeline-id outputParameters: - type: object mapping: $. - path: /v1/project/{project-slug}/pipeline name: project-project-slug-pipeline description: REST surface for project-project-slug-pipeline. operations: - method: POST name: triggerpipeline description: Trigger a new pipeline call: circlecis-pipeline.triggerpipeline with: project-slug: rest.project-slug body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: circlecis-pipeline-mcp port: 9090 transport: http description: MCP adapter for CircleCI REST API V2 — Pipeline. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: continue-pipeline description: Continue a pipeline hints: readOnly: false destructive: false idempotent: false call: circlecis-pipeline.continuepipeline with: body: tools.body outputParameters: - type: object mapping: $. - name: get-pipeline-id description: Get pipeline by ID hints: readOnly: true destructive: false idempotent: true call: circlecis-pipeline.getpipeline with: pipeline-id: tools.pipeline-id outputParameters: - type: object mapping: $. - name: trigger-new-pipeline description: Trigger a new pipeline hints: readOnly: false destructive: false idempotent: false call: circlecis-pipeline.triggerpipeline with: project-slug: tools.project-slug body: tools.body outputParameters: - type: object mapping: $.