GitHub · Capability

GitHub Repos API — Cancel

GitHub Repos API — Cancel. 1 operations. Lead operation: Cancel Workflow Run. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubCancel

What You Can Do

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

MCP Tools

cancel-workflow-run

Cancel Workflow Run

Capability Spec

temp-cancel.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Cancel
  description: 'GitHub Repos API — Cancel. 1 operations. Lead operation: 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: temp-cancel
    baseUri: ''
    description: GitHub Repos 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: 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: temp-cancel-rest
    port: 8080
    description: REST adapter for GitHub Repos 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: Cancel Workflow Run
        call: temp-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: temp-cancel-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Cancel. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: cancel-workflow-run
      description: Cancel Workflow Run
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-cancel.cancelworkflowrun
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.