GitHub · Capability

GitHub Repos API — Variables

GitHub Repos API — Variables. 15 operations. Lead operation: List Selected Repositories For An Organization Variable. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubVariables

What You Can Do

GET
Listselectedrepositoriesforanorganizationvariable — List Selected Repositories For An Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories
PUT
Setselectedrepositoriesforanorganizationvariable — Set Selected Repositories For An Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories
PUT
Addselectedrepositorytoanorganizationvariable — Add Selected Repository To An Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationvariable — Remove Selected Repository From An Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories/{repository-id}
GET
Listrepositoryorganizationvariables — List Repository Organization Variables
/v1/repos/{owner}/{repo}/actions/organization-variables
GET
Listrepositoryvariables — List Repository Variables
/v1/repos/{owner}/{repo}/actions/variables
POST
Createrepositoryvariable — Create Repository Variable
/v1/repos/{owner}/{repo}/actions/variables
GET
Getrepositoryvariable — Get Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
PATCH
Updaterepositoryvariable — Update Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
DELETE
Deleterepositoryvariable — Delete Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
GET
Listenvironmentvariables — List Environment Variables
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables
POST
Createanenvironmentvariable — Create An Environment Variable
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables
GET
Getanenvironmentvariable — Get An Environment Variable
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables/{name}
PATCH
Updateanenvironmentvariable — Update An Environment Variable
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables/{name}
DELETE
Deleteanenvironmentvariable — Delete An Environment Variable
/v1/repos/{owner}/{repo}/environments/{environment-name}/variables/{name}

MCP Tools

list-selected-repositories-organization-variable

List Selected Repositories For An Organization Variable

read-only idempotent
set-selected-repositories-organization-variable

Set Selected Repositories For An Organization Variable

idempotent
add-selected-repository-organization-variable

Add Selected Repository To An Organization Variable

idempotent
remove-selected-repository-organization-variable

Remove Selected Repository From An Organization Variable

idempotent
list-repository-organization-variables

List Repository Organization Variables

read-only idempotent
list-repository-variables

List Repository Variables

read-only idempotent
create-repository-variable

Create Repository Variable

get-repository-variable

Get Repository Variable

read-only idempotent
update-repository-variable

Update Repository Variable

idempotent
delete-repository-variable

Delete Repository Variable

idempotent
list-environment-variables

List Environment Variables

read-only idempotent
create-environment-variable

Create An Environment Variable

get-environment-variable

Get An Environment Variable

read-only idempotent
update-environment-variable

Update An Environment Variable

idempotent
delete-environment-variable

Delete An Environment Variable

idempotent

Capability Spec

temp-variables.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Variables
  description: 'GitHub Repos API — Variables. 15 operations. Lead operation: List Selected Repositories For An Organization
    Variable. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Variables
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-variables
    baseUri: ''
    description: GitHub Repos API — Variables business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-variables-name-repositories
      path: /orgs/{org}/actions/variables/{name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationvariable
        method: GET
        description: List Selected Repositories For An Organization Variable
        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: setselectedrepositoriesforanorganizationvariable
        method: PUT
        description: Set Selected Repositories For An Organization Variable
        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: orgs-org-actions-variables-name-repositories-repository_id
      path: /orgs/{org}/actions/variables/{name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationvariable
        method: PUT
        description: Add Selected Repository To An Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: removeselectedrepositoryfromanorganizationvariable
        method: DELETE
        description: Remove Selected Repository From An Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          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-actions-organization-variables
      path: /repos/{owner}/{repo}/actions/organization-variables
      operations:
      - name: listrepositoryorganizationvariables
        method: GET
        description: List Repository Organization Variables
        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-actions-variables
      path: /repos/{owner}/{repo}/actions/variables
      operations:
      - name: listrepositoryvariables
        method: GET
        description: List Repository Variables
        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: createrepositoryvariable
        method: POST
        description: Create Repository Variable
        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-actions-variables-name
      path: /repos/{owner}/{repo}/actions/variables/{name}
      operations:
      - name: getrepositoryvariable
        method: GET
        description: Get Repository Variable
        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: updaterepositoryvariable
        method: PATCH
        description: Update Repository Variable
        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: deleterepositoryvariable
        method: DELETE
        description: Delete Repository Variable
        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-environments-environment_name-variables
      path: /repos/{owner}/{repo}/environments/{environment_name}/variables
      operations:
      - name: listenvironmentvariables
        method: GET
        description: List Environment Variables
        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: createanenvironmentvariable
        method: POST
        description: Create An Environment Variable
        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-environments-environment_name-variables-name
      path: /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
      operations:
      - name: getanenvironmentvariable
        method: GET
        description: Get An Environment Variable
        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: updateanenvironmentvariable
        method: PATCH
        description: Update An Environment Variable
        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: deleteanenvironmentvariable
        method: DELETE
        description: Delete An Environment Variable
        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-variables-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Variables. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/variables/{name}/repositories
      name: orgs-org-actions-variables-name-repositories
      description: REST surface for orgs-org-actions-variables-name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationvariable
        description: List Selected Repositories For An Organization Variable
        call: temp-variables.listselectedrepositoriesforanorganizationvariable
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationvariable
        description: Set Selected Repositories For An Organization Variable
        call: temp-variables.setselectedrepositoriesforanorganizationvariable
        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/orgs/{org}/actions/variables/{name}/repositories/{repository-id}
      name: orgs-org-actions-variables-name-repositories-repository-id
      description: REST surface for orgs-org-actions-variables-name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationvariable
        description: Add Selected Repository To An Organization Variable
        call: temp-variables.addselectedrepositorytoanorganizationvariable
        with:
          repository_id: rest.repository_id
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationvariable
        description: Remove Selected Repository From An Organization Variable
        call: temp-variables.removeselectedrepositoryfromanorganizationvariable
        with:
          repository_id: rest.repository_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}/actions/organization-variables
      name: repos-owner-repo-actions-organization-variables
      description: REST surface for repos-owner-repo-actions-organization-variables.
      operations:
      - method: GET
        name: listrepositoryorganizationvariables
        description: List Repository Organization Variables
        call: temp-variables.listrepositoryorganizationvariables
        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}/actions/variables
      name: repos-owner-repo-actions-variables
      description: REST surface for repos-owner-repo-actions-variables.
      operations:
      - method: GET
        name: listrepositoryvariables
        description: List Repository Variables
        call: temp-variables.listrepositoryvariables
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createrepositoryvariable
        description: Create Repository Variable
        call: temp-variables.createrepositoryvariable
        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}/actions/variables/{name}
      name: repos-owner-repo-actions-variables-name
      description: REST surface for repos-owner-repo-actions-variables-name.
      operations:
      - method: GET
        name: getrepositoryvariable
        description: Get Repository Variable
        call: temp-variables.getrepositoryvariable
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updaterepositoryvariable
        description: Update Repository Variable
        call: temp-variables.updaterepositoryvariable
        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: deleterepositoryvariable
        description: Delete Repository Variable
        call: temp-variables.deleterepositoryvariable
        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}/environments/{environment-name}/variables
      name: repos-owner-repo-environments-environment-name-variables
      description: REST surface for repos-owner-repo-environments-environment_name-variables.
      operations:
      - method: GET
        name: listenvironmentvariables
        description: List Environment Variables
        call: temp-variables.listenvironmentvariables
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createanenvironmentvariable
        description: Create An Environment Variable
        call: temp-variables.createanenvironmentvariable
        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}/environments/{environment-name}/variables/{name}
      name: repos-owner-repo-environments-environment-name-variables-name
      description: REST surface for repos-owner-repo-environments-environment_name-variables-name.
      operations:
      - method: GET
        name: getanenvironmentvariable
        description: Get An Environment Variable
        call: temp-variables.getanenvironmentvariable
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateanenvironmentvariable
        description: Update An Environment Variable
        call: temp-variables.updateanenvironmentvariable
        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: deleteanenvironmentvariable
        description: Delete An Environment Variable
        call: temp-variables.deleteanenvironmentvariable
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-variables-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Variables. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-selected-repositories-organization-variable
      description: List Selected Repositories For An Organization Variable
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-variables.listselectedrepositoriesforanorganizationvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: set-selected-repositories-organization-variable
      description: Set Selected Repositories For An Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-variables.setselectedrepositoriesforanorganizationvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: add-selected-repository-organization-variable
      description: Add Selected Repository To An Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-variables.addselectedrepositorytoanorganizationvariable
      with:
        repository_id: tools.repository_id
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-selected-repository-organization-variable
      description: Remove Selected Repository From An Organization Variable
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-variables.removeselectedrepositoryfromanorganizationvariable
      with:
        repository_id: tools.repository_id
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-repository-organization-variables
      description: List Repository Organization Variables
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-variables.listrepositoryorganizationvariables
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-repository-variables
      description: List Repository Variables
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-variables.listrepositoryvariables
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: create-repository-variable
      description: Create Repository Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-variables.createrepositoryvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-repository-variable
      description: Get Repository Variable
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-variables.getrepositoryvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: update-repository-variable
      description: Update Repository Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-variables.updaterepositoryvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-repository-variable
      description: Delete Repository Variable
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-variables.deleterepositoryvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: list-environment-variables
      description: List Environment Variables
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-variables.listenvironmentvariables
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: create-environment-variable
      description: Create An Environment Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: temp-variables.createanenvironmentvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-environment-variable
      description: Get An Environment Variable
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-variables.getanenvironmentvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: update-environment-variable
      description: Update An Environment Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-variables.updateanenvironmentvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-environment-variable
      description: Delete An Environment Variable
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-variables.deleteanenvironmentvariable
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.