GitHub · Capability

github-repos-api — Check Suites

github-repos-api — Check Suites. 5 operations. Lead operation: GitHub Create Check Suite. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubCheck Suites

What You Can Do

POST
Createchecksuite — GitHub Create Check Suite
/v1/repos/{owner}/{repo}/check-suites
PATCH
Updaterepositorypreferencesforchecksuites — GitHub Update Repository Preferences for Check Suites
/v1/repos/{owner}/{repo}/check-suites/preferences
GET
Getchecksuite — GitHub Get Check Suite
/v1/repos/{owner}/{repo}/check-suites/{check-suite-id}
POST
Rerequestchecksuite — GitHub Rerequest Check Suite
/v1/repos/{owner}/{repo}/check-suites/{check-suite-id}/rerequest
GET
Listchecksuitesforgitreference — GitHub List Check Suites for Git Reference
/v1/repos/{owner}/{repo}/commits/{ref}/check-suites

MCP Tools

github-create-check-suite

GitHub Create Check Suite

read-only
github-update-repository-preferences-check

GitHub Update Repository Preferences for Check Suites

idempotent
github-get-check-suite

GitHub Get Check Suite

read-only idempotent
github-rerequest-check-suite

GitHub Rerequest Check Suite

read-only
github-list-check-suites-git

GitHub List Check Suites for Git Reference

read-only idempotent

Capability Spec

repos-check-suites.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Check Suites
  description: 'github-repos-api — Check Suites. 5 operations. Lead operation: GitHub Create Check Suite. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Check Suites
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repos-check-suites
    baseUri: http://localhost:8080/rest/github-repos-api/1.1.4
    description: github-repos-api — Check Suites business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-check-suites
      path: /repos/{owner}/{repo}/check-suites
      operations:
      - name: createchecksuite
        method: POST
        description: GitHub Create Check Suite
        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
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-check-suites-preferences
      path: /repos/{owner}/{repo}/check-suites/preferences
      operations:
      - name: updaterepositorypreferencesforchecksuites
        method: PATCH
        description: GitHub Update Repository Preferences for Check Suites
        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
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-check-suites-check_suite_id
      path: /repos/{owner}/{repo}/check-suites/{check_suite_id}
      operations:
      - name: getchecksuite
        method: GET
        description: GitHub Get Check Suite
        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
    - name: repos-owner-repo-check-suites-check_suite_id-rerequest
      path: /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest
      operations:
      - name: rerequestchecksuite
        method: POST
        description: GitHub Rerequest Check Suite
        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
    - name: repos-owner-repo-commits-ref-check-suites
      path: /repos/{owner}/{repo}/commits/{ref}/check-suites
      operations:
      - name: listchecksuitesforgitreference
        method: GET
        description: GitHub List Check Suites for Git Reference
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: app_id
          in: query
          type: integer
          description: Filters check suites by GitHub App `id`.
        - 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: repos-check-suites-rest
    port: 8080
    description: REST adapter for github-repos-api — Check Suites. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/check-suites
      name: repos-owner-repo-check-suites
      description: REST surface for repos-owner-repo-check-suites.
      operations:
      - method: POST
        name: createchecksuite
        description: GitHub Create Check Suite
        call: repos-check-suites.createchecksuite
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/check-suites/preferences
      name: repos-owner-repo-check-suites-preferences
      description: REST surface for repos-owner-repo-check-suites-preferences.
      operations:
      - method: PATCH
        name: updaterepositorypreferencesforchecksuites
        description: GitHub Update Repository Preferences for Check Suites
        call: repos-check-suites.updaterepositorypreferencesforchecksuites
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/check-suites/{check-suite-id}
      name: repos-owner-repo-check-suites-check-suite-id
      description: REST surface for repos-owner-repo-check-suites-check_suite_id.
      operations:
      - method: GET
        name: getchecksuite
        description: GitHub Get Check Suite
        call: repos-check-suites.getchecksuite
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/check-suites/{check-suite-id}/rerequest
      name: repos-owner-repo-check-suites-check-suite-id-rerequest
      description: REST surface for repos-owner-repo-check-suites-check_suite_id-rerequest.
      operations:
      - method: POST
        name: rerequestchecksuite
        description: GitHub Rerequest Check Suite
        call: repos-check-suites.rerequestchecksuite
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/commits/{ref}/check-suites
      name: repos-owner-repo-commits-ref-check-suites
      description: REST surface for repos-owner-repo-commits-ref-check-suites.
      operations:
      - method: GET
        name: listchecksuitesforgitreference
        description: GitHub List Check Suites for Git Reference
        call: repos-check-suites.listchecksuitesforgitreference
        with:
          app_id: rest.app_id
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: repos-check-suites-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Check Suites. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-create-check-suite
      description: GitHub Create Check Suite
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: repos-check-suites.createchecksuite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-repository-preferences-check
      description: GitHub Update Repository Preferences for Check Suites
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repos-check-suites.updaterepositorypreferencesforchecksuites
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-check-suite
      description: GitHub Get Check Suite
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repos-check-suites.getchecksuite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-rerequest-check-suite
      description: GitHub Rerequest Check Suite
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: repos-check-suites.rerequestchecksuite
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-check-suites-git
      description: GitHub List Check Suites for Git Reference
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repos-check-suites.listchecksuitesforgitreference
      with:
        app_id: tools.app_id
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.