naftiko: 1.0.0-alpha2 info: label: Azure DevOps Pipelines API — Runs description: 'Azure DevOps Pipelines API — Runs. 3 operations. Lead operation: List Pipeline Runs. Self-contained Naftiko capability covering one Azure Devops business surface.' tags: - Azure Devops - Runs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AZURE_DEVOPS_API_KEY: AZURE_DEVOPS_API_KEY capability: consumes: - type: http namespace: pipelines-runs baseUri: https://dev.azure.com/{organization} description: Azure DevOps Pipelines API — Runs business capability. Self-contained, no shared references. resources: - name: project-_apis-pipelines-pipelineId-runs path: /{project}/_apis/pipelines/{pipelineId}/runs operations: - name: listpipelineruns method: GET description: List Pipeline Runs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: organization in: path type: string required: true - name: project in: path type: string required: true - name: pipelineId in: path type: integer required: true - name: api-version in: query type: string required: true - name: runpipeline method: POST description: Run a Pipeline outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: organization in: path type: string required: true - name: project in: path type: string required: true - name: pipelineId in: path type: integer required: true - name: api-version in: query type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: project-_apis-pipelines-pipelineId-runs-runId path: /{project}/_apis/pipelines/{pipelineId}/runs/{runId} operations: - name: getpipelinerun method: GET description: Get Pipeline Run outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: organization in: path type: string required: true - name: project in: path type: string required: true - name: pipelineId in: path type: integer required: true - name: runId in: path type: integer required: true - name: api-version in: query type: string required: true authentication: type: bearer token: '{{env.AZURE_DEVOPS_API_KEY}}' exposes: - type: rest namespace: pipelines-runs-rest port: 8080 description: REST adapter for Azure DevOps Pipelines API — Runs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{project}/apis/pipelines/{pipelineid}/runs name: project-apis-pipelines-pipelineid-runs description: REST surface for project-_apis-pipelines-pipelineId-runs. operations: - method: GET name: listpipelineruns description: List Pipeline Runs call: pipelines-runs.listpipelineruns with: organization: rest.organization project: rest.project pipelineId: rest.pipelineId api-version: rest.api-version outputParameters: - type: object mapping: $. - method: POST name: runpipeline description: Run a Pipeline call: pipelines-runs.runpipeline with: organization: rest.organization project: rest.project pipelineId: rest.pipelineId api-version: rest.api-version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/{project}/apis/pipelines/{pipelineid}/runs/{runid} name: project-apis-pipelines-pipelineid-runs-runid description: REST surface for project-_apis-pipelines-pipelineId-runs-runId. operations: - method: GET name: getpipelinerun description: Get Pipeline Run call: pipelines-runs.getpipelinerun with: organization: rest.organization project: rest.project pipelineId: rest.pipelineId runId: rest.runId api-version: rest.api-version outputParameters: - type: object mapping: $. - type: mcp namespace: pipelines-runs-mcp port: 9090 transport: http description: MCP adapter for Azure DevOps Pipelines API — Runs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-pipeline-runs description: List Pipeline Runs hints: readOnly: true destructive: false idempotent: true call: pipelines-runs.listpipelineruns with: organization: tools.organization project: tools.project pipelineId: tools.pipelineId api-version: tools.api-version outputParameters: - type: object mapping: $. - name: run-pipeline description: Run a Pipeline hints: readOnly: false destructive: false idempotent: false call: pipelines-runs.runpipeline with: organization: tools.organization project: tools.project pipelineId: tools.pipelineId api-version: tools.api-version body: tools.body outputParameters: - type: object mapping: $. - name: get-pipeline-run description: Get Pipeline Run hints: readOnly: true destructive: false idempotent: true call: pipelines-runs.getpipelinerun with: organization: tools.organization project: tools.project pipelineId: tools.pipelineId runId: tools.runId api-version: tools.api-version outputParameters: - type: object mapping: $.