GitHub · Capability

GitHub Repos API — Contexts

GitHub Repos API — Contexts. 4 operations. Lead operation: Get All Status Check Contexts. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubContexts

What You Can Do

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

MCP Tools

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

Capability Spec

temp-contexts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Contexts
  description: 'GitHub Repos API — Contexts. 4 operations. Lead operation: Get All Status Check Contexts. Self-contained Naftiko
    capability covering one Github business surface.'
  tags:
  - Github
  - Contexts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-contexts
    baseUri: ''
    description: GitHub Repos API — Contexts business capability. Self-contained, no shared references.
    resources:
    - 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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: temp-contexts-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Contexts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - 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-contexts.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-contexts.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-contexts.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-contexts.removestatuscheckcontexts
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-contexts-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Contexts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-all-status-check-contexts
      description: Get All Status Check Contexts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-contexts.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-contexts.addstatuscheckcontexts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-status-check-contexts
      description: Set Status Check Contexts
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-contexts.setstatuscheckcontexts
      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-contexts
      description: Remove Status Check Contexts
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-contexts.removestatuscheckcontexts
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.