naftiko: 1.0.0-alpha2 info: label: CircleCI REST API v2 — Job description: 'CircleCI REST API v2 — Job. 4 operations. Lead operation: Get job details. Self-contained Naftiko capability covering one Circleci business surface.' tags: - Circleci - Job 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-v2-job baseUri: https://circleci.com/api/v2 description: CircleCI REST API v2 — Job business capability. Self-contained, no shared references. resources: - name: project-project-slug-job-job-number path: /project/{project-slug}/job/{job-number} operations: - name: getjob method: GET description: Get job details outputRawFormat: json outputParameters: - name: result type: object value: $. - name: project-project-slug-job-job-number-cancel path: /project/{project-slug}/job/{job-number}/cancel operations: - name: canceljob method: POST description: Cancel a job outputRawFormat: json outputParameters: - name: result type: object value: $. - name: project-project-slug-job-number-artifacts path: /project/{project-slug}/{job-number}/artifacts operations: - name: listjobartifacts method: GET description: List artifacts for a job outputRawFormat: json outputParameters: - name: result type: object value: $. - name: project-project-slug-job-number-tests path: /project/{project-slug}/{job-number}/tests operations: - name: listjobtests method: GET description: List test metadata for a job 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-v2-job-rest port: 8080 description: REST adapter for CircleCI REST API v2 — Job. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/project/{project-slug}/job/{job-number} name: project-project-slug-job-job-number description: REST surface for project-project-slug-job-job-number. operations: - method: GET name: getjob description: Get job details call: rest-api-v2-job.getjob outputParameters: - type: object mapping: $. - path: /v1/project/{project-slug}/job/{job-number}/cancel name: project-project-slug-job-job-number-cancel description: REST surface for project-project-slug-job-job-number-cancel. operations: - method: POST name: canceljob description: Cancel a job call: rest-api-v2-job.canceljob outputParameters: - type: object mapping: $. - path: /v1/project/{project-slug}/{job-number}/artifacts name: project-project-slug-job-number-artifacts description: REST surface for project-project-slug-job-number-artifacts. operations: - method: GET name: listjobartifacts description: List artifacts for a job call: rest-api-v2-job.listjobartifacts outputParameters: - type: object mapping: $. - path: /v1/project/{project-slug}/{job-number}/tests name: project-project-slug-job-number-tests description: REST surface for project-project-slug-job-number-tests. operations: - method: GET name: listjobtests description: List test metadata for a job call: rest-api-v2-job.listjobtests outputParameters: - type: object mapping: $. - type: mcp namespace: rest-api-v2-job-mcp port: 9090 transport: http description: MCP adapter for CircleCI REST API v2 — Job. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-job-details description: Get job details hints: readOnly: true destructive: false idempotent: true call: rest-api-v2-job.getjob outputParameters: - type: object mapping: $. - name: cancel-job description: Cancel a job hints: readOnly: false destructive: false idempotent: false call: rest-api-v2-job.canceljob outputParameters: - type: object mapping: $. - name: list-artifacts-job description: List artifacts for a job hints: readOnly: true destructive: false idempotent: true call: rest-api-v2-job.listjobartifacts outputParameters: - type: object mapping: $. - name: list-test-metadata-job description: List test metadata for a job hints: readOnly: true destructive: false idempotent: true call: rest-api-v2-job.listjobtests outputParameters: - type: object mapping: $.