Azure Pipelines · Capability

Azure Pipelines REST API — Runs

Azure Pipelines REST API — Runs. 3 operations. Lead operation: Azure Pipelines List pipeline runs. Self-contained Naftiko capability covering one Microsoft Azure Pipelines business surface.

Run with Naftiko Microsoft Azure PipelinesRuns

What You Can Do

GET
Listruns — Azure Pipelines List pipeline runs
/v1/pipelines/{pipelineid}/runs
POST
Runpipeline — Azure Pipelines Run a pipeline
/v1/pipelines/{pipelineid}/runs
GET
Getrun — Azure Pipelines Get a pipeline run
/v1/pipelines/{pipelineid}/runs/{runid}

MCP Tools

azure-pipelines-list-pipeline-runs

Azure Pipelines List pipeline runs

read-only idempotent
azure-pipelines-run-pipeline

Azure Pipelines Run a pipeline

azure-pipelines-get-pipeline-run

Azure Pipelines Get a pipeline run

read-only idempotent

Capability Spec

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