GitHub · Capability

GitHub Repos API — Checks

GitHub Repos API — Checks. 24 operations. Lead operation: Get Status Checks Protection. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubChecks

What You Can Do

GET
Getstatuschecksprotection — Get Status Checks Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
PATCH
Updatestatuscheckprotection — Update Status Check Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
DELETE
Removestatuscheckprotection — Remove Status Check Protection
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
GET
Getallstatuscheckcontexts — Get All Status Check Contexts
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks/contexts
POST
Addstatuscheckcontexts — Add Status Check Contexts
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks/contexts
PUT
Setstatuscheckcontexts — Set Status Check Contexts
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks/contexts
DELETE
Removestatuscheckcontexts — Remove Status Check Contexts
/v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks/contexts
POST
Createcheckrun — Create Check Run
/v1/repos/{owner}/{repo}/check-runs
GET
Getcheckrun — Get Check Run
/v1/repos/{owner}/{repo}/check-runs/{check-run-id}
PATCH
Updatecheckrun — Update Check Run
/v1/repos/{owner}/{repo}/check-runs/{check-run-id}
GET
Listcheckrunannotations — List Check Run Annotations
/v1/repos/{owner}/{repo}/check-runs/{check-run-id}/annotations
POST
Rerequestcheckrun — Rerequest Check Run
/v1/repos/{owner}/{repo}/check-runs/{check-run-id}/rerequest
POST
Createchecksuite — Create Check Suite
/v1/repos/{owner}/{repo}/check-suites
PATCH
Updaterepositorypreferencesforchecksuites — Update Repository Preferences For Check Suites
/v1/repos/{owner}/{repo}/check-suites/preferences
GET
Getchecksuite — Get Check Suite
/v1/repos/{owner}/{repo}/check-suites/{check-suite-id}
GET
Listcheckrunsinchecksuite — List Check Runs In Check Suite
/v1/repos/{owner}/{repo}/check-suites/{check-suite-id}/check-runs
POST
Rerequestchecksuite — Rerequest Check Suite
/v1/repos/{owner}/{repo}/check-suites/{check-suite-id}/rerequest
GET
Checkifuserisrepositorycollaborator — Check If User Is Repository Collaborator
/v1/repos/{owner}/{repo}/collaborators/{username}
GET
Listcheckrunsforgitreference — List Check Runs For Git Reference
/v1/repos/{owner}/{repo}/commits/{ref}/check-runs
GET
Listchecksuitesforgitreference — List Check Suites For Git Reference
/v1/repos/{owner}/{repo}/commits/{ref}/check-suites
GET
Checkifusercanbeassignedtoissue — Check If User Can Be Assigned To Issue
/v1/repos/{owner}/{repo}/issues/{issue-number}/assignees/{assignee}
GET
Checkifpullrequesthasbeenmerged — Check If Pull Request Has Been Merged
/v1/repos/{owner}/{repo}/pulls/{pull-number}/merge
GET
Checkifvulnerabilityalertsareenabledforrepository — Check If Vulnerability Alerts Are Enabled For Repository
/v1/repos/{owner}/{repo}/vulnerability-alerts
GET
Checkteampermissionsforrepositorylegacy — Check Team Permissions For Repository (legacy)
/v1/teams/{team-id}/repos/{owner}/{repo}

MCP Tools

get-status-checks-protection

Get Status Checks Protection

read-only idempotent
update-status-check-protection

Update Status Check Protection

idempotent
remove-status-check-protection

Remove Status Check Protection

idempotent
get-all-status-check-contexts

Get All Status Check Contexts

read-only idempotent
add-status-check-contexts

Add Status Check Contexts

read-only
set-status-check-contexts

Set Status Check Contexts

idempotent
remove-status-check-contexts

Remove Status Check Contexts

idempotent
create-check-run

Create Check Run

read-only
get-check-run

Get Check Run

read-only idempotent
update-check-run

Update Check Run

idempotent
list-check-run-annotations

List Check Run Annotations

read-only idempotent
rerequest-check-run

Rerequest Check Run

read-only
create-check-suite

Create Check Suite

read-only
update-repository-preferences-check-suites

Update Repository Preferences For Check Suites

idempotent
get-check-suite

Get Check Suite

read-only idempotent
list-check-runs-check-suite

List Check Runs In Check Suite

read-only idempotent
rerequest-check-suite

Rerequest Check Suite

read-only
check-if-user-is-repository

Check If User Is Repository Collaborator

read-only idempotent
list-check-runs-git-reference

List Check Runs For Git Reference

read-only idempotent
list-check-suites-git-reference

List Check Suites For Git Reference

read-only idempotent
check-if-user-can-be

Check If User Can Be Assigned To Issue

read-only idempotent
check-if-pull-request-has

Check If Pull Request Has Been Merged

read-only idempotent
check-if-vulnerability-alerts-are

Check If Vulnerability Alerts Are Enabled For Repository

read-only idempotent
check-team-permissions-repository-legacy

Check Team Permissions For Repository (legacy)

read-only idempotent

Capability Spec

temp-checks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Checks
  description: 'GitHub Repos API — Checks. 24 operations. Lead operation: Get Status Checks Protection. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Checks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-checks
    baseUri: ''
    description: GitHub Repos API — Checks business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-branches-branch-protection-required_status_checks
      path: /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks
      operations:
      - name: getstatuschecksprotection
        method: GET
        description: Get Status Checks Protection
        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: updatestatuscheckprotection
        method: PATCH
        description: Update Status Check Protection
        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: false
      - name: removestatuscheckprotection
        method: DELETE
        description: Remove Status Check Protection
        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-branches-branch-protection-required_status_checks-contexts
      path: /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts
      operations:
      - name: getallstatuscheckcontexts
        method: GET
        description: Get All Status Check Contexts
        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: addstatuscheckcontexts
        method: POST
        description: Add Status Check Contexts
        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: false
      - name: setstatuscheckcontexts
        method: PUT
        description: Set Status Check Contexts
        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: false
      - name: removestatuscheckcontexts
        method: DELETE
        description: Remove Status Check Contexts
        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: false
    - name: repos-owner-repo-check-runs
      path: /repos/{owner}/{repo}/check-runs
      operations:
      - name: createcheckrun
        method: POST
        description: Create Check 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
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-check-runs-check_run_id
      path: /repos/{owner}/{repo}/check-runs/{check_run_id}
      operations:
      - name: getcheckrun
        method: GET
        description: Get Check 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
      - name: updatecheckrun
        method: PATCH
        description: Update Check 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
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-check-runs-check_run_id-annotations
      path: /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations
      operations:
      - name: listcheckrunannotations
        method: GET
        description: List Check Run Annotations
        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-runs-check_run_id-rerequest
      path: /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest
      operations:
      - name: rerequestcheckrun
        method: POST
        description: Rerequest Check 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
    - name: repos-owner-repo-check-suites
      path: /repos/{owner}/{repo}/check-suites
      operations:
      - name: createchecksuite
        method: POST
        description: 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: 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: 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-check-runs
      path: /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs
      operations:
      - name: listcheckrunsinchecksuite
        method: GET
        description: List Check Runs In Check Suite
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs.
        - 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: 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-collaborators-username
      path: /repos/{owner}/{repo}/collaborators/{username}
      operations:
      - name: checkifuserisrepositorycollaborator
        method: GET
        description: Check If User Is Repository Collaborator
        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-runs
      path: /repos/{owner}/{repo}/commits/{ref}/check-runs
      operations:
      - name: listcheckrunsforgitreference
        method: GET
        description: List Check Runs For Git Reference
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs.
        - name: app_id
          in: query
          type: integer
        - 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: 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
    - name: repos-owner-repo-issues-issue_number-assignees-assignee
      path: /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}
      operations:
      - name: checkifusercanbeassignedtoissue
        method: GET
        description: Check If User Can Be Assigned To Issue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: assignee
          in: path
          type: string
          required: true
        - 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-pulls-pull_number-merge
      path: /repos/{owner}/{repo}/pulls/{pull_number}/merge
      operations:
      - name: checkifpullrequesthasbeenmerged
        method: GET
        description: Check If Pull Request Has Been Merged
        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-vulnerability-alerts
      path: /repos/{owner}/{repo}/vulnerability-alerts
      operations:
      - name: checkifvulnerabilityalertsareenabledforrepository
        method: GET
        description: Check If Vulnerability Alerts Are Enabled For Repository
        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: teams-team_id-repos-owner-repo
      path: /teams/{team_id}/repos/{owner}/{repo}
      operations:
      - name: checkteampermissionsforrepositorylegacy
        method: GET
        description: Check Team Permissions For Repository (legacy)
        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-checks-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Checks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/branches/{branch}/protection/required-status-checks
      name: repos-owner-repo-branches-branch-protection-required-status-checks
      description: REST surface for repos-owner-repo-branches-branch-protection-required_status_checks.
      operations:
      - method: GET
        name: getstatuschecksprotection
        description: Get Status Checks Protection
        call: temp-checks.getstatuschecksprotection
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatestatuscheckprotection
        description: Update Status Check Protection
        call: temp-checks.updatestatuscheckprotection
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removestatuscheckprotection
        description: Remove Status Check Protection
        call: temp-checks.removestatuscheckprotection
        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}/branches/{branch}/protection/required-status-checks/contexts
      name: repos-owner-repo-branches-branch-protection-required-status-checks-contexts
      description: REST surface for repos-owner-repo-branches-branch-protection-required_status_checks-contexts.
      operations:
      - method: GET
        name: getallstatuscheckcontexts
        description: Get All Status Check Contexts
        call: temp-checks.getallstatuscheckcontexts
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addstatuscheckcontexts
        description: Add Status Check Contexts
        call: temp-checks.addstatuscheckcontexts
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setstatuscheckcontexts
        description: Set Status Check Contexts
        call: temp-checks.setstatuscheckcontexts
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removestatuscheckcontexts
        description: Remove Status Check Contexts
        call: temp-checks.removestatuscheckcontexts
        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-runs
      name: repos-owner-repo-check-runs
      description: REST surface for repos-owner-repo-check-runs.
      operations:
      - method: POST
        name: createcheckrun
        description: Create Check Run
        call: temp-checks.createcheckrun
        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-runs/{check-run-id}
      name: repos-owner-repo-check-runs-check-run-id
      description: REST surface for repos-owner-repo-check-runs-check_run_id.
      operations:
      - method: GET
        name: getcheckrun
        description: Get Check Run
        call: temp-checks.getcheckrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatecheckrun
        description: Update Check Run
        call: temp-checks.updatecheckrun
        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-runs/{check-run-id}/annotations
      name: repos-owner-repo-check-runs-check-run-id-annotations
      description: REST surface for repos-owner-repo-check-runs-check_run_id-annotations.
      operations:
      - method: GET
        name: listcheckrunannotations
        description: List Check Run Annotations
        call: temp-checks.listcheckrunannotations
        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-runs/{check-run-id}/rerequest
      name: repos-owner-repo-check-runs-check-run-id-rerequest
      description: REST surface for repos-owner-repo-check-runs-check_run_id-rerequest.
      operations:
      - method: POST
        name: rerequestcheckrun
        description: Rerequest Check Run
        call: temp-checks.rerequestcheckrun
        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
      name: repos-owner-repo-check-suites
      description: REST surface for repos-owner-repo-check-suites.
      operations:
      - method: POST
        name: createchecksuite
        description: Create Check Suite
        call: temp-checks.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: Update Repository Preferences For Check Suites
        call: temp-checks.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: Get Check Suite
        call: temp-checks.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}/check-runs
      name: repos-owner-repo-check-suites-check-suite-id-check-runs
      description: REST surface for repos-owner-repo-check-suites-check_suite_id-check-runs.
      operations:
      - method: GET
        name: listcheckrunsinchecksuite
        description: List Check Runs In Check Suite
        call: temp-checks.listcheckrunsinchecksuite
        with:
          filter: rest.filter
          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: Rerequest Check Suite
        call: temp-checks.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}/collaborators/{username}
      name: repos-owner-repo-collaborators-username
      description: REST surface for repos-owner-repo-collaborators-username.
      operations:
      - method: GET
        name: checkifuserisrepositorycollaborator
        description: Check If User Is Repository Collaborator
        call: temp-checks.checkifuserisrepositorycollaborator
        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-runs
      name: repos-owner-repo-commits-ref-check-runs
      description: REST surface for repos-owner-repo-commits-ref-check-runs.
      operations:
      - method: GET
        name: listcheckrunsforgitreference
        description: List Check Runs For Git Reference
        call: temp-checks.listcheckrunsforgitreference
        with:
          filter: rest.filter
          app_id: rest.app_id
          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: List Check Suites For Git Reference
        call: temp-checks.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: $.
    - path: /v1/repos/{owner}/{repo}/issues/{issue-number}/assignees/{assignee}
      name: repos-owner-repo-issues-issue-number-assignees-assignee
      description: REST surface for repos-owner-repo-issues-issue_number-assignees-assignee.
      operations:
      - method: GET
        name: checkifusercanbeassignedtoissue
        description: Check If User Can Be Assigned To Issue
        call: temp-checks.checkifusercanbeassignedtoissue
        with:
          assignee: rest.assignee
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/pulls/{pull-number}/merge
      name: repos-owner-repo-pulls-pull-number-merge
      description: REST surface for repos-owner-repo-pulls-pull_number-merge.
      operations:
      - method: GET
        name: checkifpullrequesthasbeenmerged
        description: Check If Pull Request Has Been Merged
        call: temp-checks.checkifpullrequesthasbeenmerged
        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}/vulnerability-alerts
      name: repos-owner-repo-vulnerability-alerts
      description: REST surface for repos-owner-repo-vulnerability-alerts.
      operations:
      - method: GET
        name: checkifvulnerabilityalertsareenabledforrepository
        description: Check If Vulnerability Alerts Are Enabled For Repository
        call: temp-checks.checkifvulnerabilityalertsareenabledforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/repos/{owner}/{repo}
      name: teams-team-id-repos-owner-repo
      description: REST surface for teams-team_id-repos-owner-repo.
      operations:
      - method: GET
        name: checkteampermissionsforrepositorylegacy
        description: Check Team Permissions For Repository (legacy)
        call: temp-checks.checkteampermissionsforrepositorylegacy
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-checks-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Checks. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-status-checks-protection
      description: Get Status Checks Protection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-checks.getstatuschecksprotection
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: update-status-check-protection
      description: Update Status Check Protection
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-checks.updatestatuscheckprotection
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-status-check-protection
      description: Remove Status Check Protection
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-checks.removestatuscheckprotection
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-status-check-contexts
      description: Get All Status Check Contexts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-checks.getallstatuscheckcontexts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: add-status-check-contexts
      description: Add Status Check Contexts
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: temp-checks.addstatuscheckcontexts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      

# --- truncated at 32 KB (40 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/temp-checks.yaml