GitHub · Capability

github-repo-actions-api — Cancel

github-repo-actions-api — Cancel. 1 operations. Lead operation: GitHub Cancel Workflow Run. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubCancel

What You Can Do

POST
Cancelworkflowrun — GitHub Cancel Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/cancel

MCP Tools

github-cancel-workflow-run

GitHub Cancel Workflow Run

Capability Spec

repo-actions-cancel.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repo-actions-api — Cancel
  description: 'github-repo-actions-api — Cancel. 1 operations. Lead operation: GitHub Cancel Workflow Run. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Cancel
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-actions-cancel
    baseUri: ''
    description: github-repo-actions-api — Cancel business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-actions-runs-run_id-cancel
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/cancel
      operations:
      - name: cancelworkflowrun
        method: POST
        description: GitHub Cancel Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repo-actions-cancel-rest
    port: 8080
    description: REST adapter for github-repo-actions-api — Cancel. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/cancel
      name: repos-owner-repo-actions-runs-run-id-cancel
      description: REST surface for repos-owner-repo-actions-runs-run_id-cancel.
      operations:
      - method: POST
        name: cancelworkflowrun
        description: GitHub Cancel Workflow Run
        call: repo-actions-cancel.cancelworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repo-actions-cancel-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repo-actions-api — Cancel. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: github-cancel-workflow-run
      description: GitHub Cancel Workflow Run
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-actions-cancel.cancelworkflowrun
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.