GitHub · Capability

GitHub Org API — Variables

GitHub Org API — Variables. 9 operations. Lead operation: GitHub List Organization Variables. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubVariables

What You Can Do

GET
Listorganizationvariables — GitHub List Organization Variables
/v1/orgs/{org}/actions/variables
POST
Createanorganizationvariable — GitHub Create an Organization Variable
/v1/orgs/{org}/actions/variables
GET
Getanorganizationvariable — GitHub Get an Organization Variable
/v1/orgs/{org}/actions/variables/{name}
PATCH
Updateanorganizationvariable — GitHub Update an Organization Variable
/v1/orgs/{org}/actions/variables/{name}
DELETE
Deleteanorganizationvariable — GitHub Delete an Organization Variable
/v1/orgs/{org}/actions/variables/{name}
GET
Listselectedrepositoriesforanorganizationvariable — GitHub List Selected Repositories for an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories
PUT
Setselectedrepositoriesforanorganizationvariable — GitHub Set Selected Repositories for an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories
PUT
Addselectedrepositorytoanorganizationvariable — GitHub Add Selected Repository to an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationvariable — GitHub Remove Selected Repository from an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories/{repository-id}

MCP Tools

github-list-organization-variables

GitHub List Organization Variables

read-only idempotent
github-create-organization-variable

GitHub Create an Organization Variable

github-get-organization-variable

GitHub Get an Organization Variable

read-only idempotent
github-update-organization-variable

GitHub Update an Organization Variable

idempotent
github-delete-organization-variable

GitHub Delete an Organization Variable

idempotent
github-list-selected-repositories-organization

GitHub List Selected Repositories for an Organization Variable

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

GitHub Set Selected Repositories for an Organization Variable

idempotent
github-add-selected-repository-organization

GitHub Add Selected Repository to an Organization Variable

idempotent
github-remove-selected-repository-organization

GitHub Remove Selected Repository from an Organization Variable

idempotent

Capability Spec

organizations-variables.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Variables
  description: 'GitHub Org API — Variables. 9 operations. Lead operation: GitHub List Organization Variables. 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: organizations-variables
    baseUri: ''
    description: GitHub Org API — Variables business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-variables
      path: /orgs/{org}/actions/variables
      operations:
      - name: listorganizationvariables
        method: GET
        description: GitHub List Organization Variables
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createanorganizationvariable
        method: POST
        description: GitHub Create an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-actions-variables-name
      path: /orgs/{org}/actions/variables/{name}
      operations:
      - name: getanorganizationvariable
        method: GET
        description: GitHub Get an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateanorganizationvariable
        method: PATCH
        description: GitHub Update an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteanorganizationvariable
        method: DELETE
        description: GitHub Delete an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-variables-name-repositories
      path: /orgs/{org}/actions/variables/{name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationvariable
        method: GET
        description: GitHub List Selected Repositories for an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesforanorganizationvariable
        method: PUT
        description: GitHub Set Selected Repositories for an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - 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: GitHub 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: removeselectedrepositoryfromanorganizationvariable
        method: DELETE
        description: GitHub 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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-variables-rest
    port: 8080
    description: REST adapter for GitHub Org API — Variables. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/variables
      name: orgs-org-actions-variables
      description: REST surface for orgs-org-actions-variables.
      operations:
      - method: GET
        name: listorganizationvariables
        description: GitHub List Organization Variables
        call: organizations-variables.listorganizationvariables
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createanorganizationvariable
        description: GitHub Create an Organization Variable
        call: organizations-variables.createanorganizationvariable
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/variables/{name}
      name: orgs-org-actions-variables-name
      description: REST surface for orgs-org-actions-variables-name.
      operations:
      - method: GET
        name: getanorganizationvariable
        description: GitHub Get an Organization Variable
        call: organizations-variables.getanorganizationvariable
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateanorganizationvariable
        description: GitHub Update an Organization Variable
        call: organizations-variables.updateanorganizationvariable
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteanorganizationvariable
        description: GitHub Delete an Organization Variable
        call: organizations-variables.deleteanorganizationvariable
        outputParameters:
        - type: object
          mapping: $.
    - 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: GitHub List Selected Repositories for an Organization Variable
        call: organizations-variables.listselectedrepositoriesforanorganizationvariable
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationvariable
        description: GitHub Set Selected Repositories for an Organization Variable
        call: organizations-variables.setselectedrepositoriesforanorganizationvariable
        with:
          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: GitHub Add Selected Repository to an Organization Variable
        call: organizations-variables.addselectedrepositorytoanorganizationvariable
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationvariable
        description: GitHub Remove Selected Repository from an Organization Variable
        call: organizations-variables.removeselectedrepositoryfromanorganizationvariable
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-variables-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Variables. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-list-organization-variables
      description: GitHub List Organization Variables
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-variables.listorganizationvariables
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-organization-variable
      description: GitHub Create an Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: organizations-variables.createanorganizationvariable
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-organization-variable
      description: GitHub Get an Organization Variable
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-variables.getanorganizationvariable
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-organization-variable
      description: GitHub Update an Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-variables.updateanorganizationvariable
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-organization-variable
      description: GitHub Delete an Organization Variable
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-variables.deleteanorganizationvariable
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-selected-repositories-organization
      description: GitHub List Selected Repositories for an Organization Variable
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-variables.listselectedrepositoriesforanorganizationvariable
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-selected-repositories-organization
      description: GitHub Set Selected Repositories for an Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-variables.setselectedrepositoriesforanorganizationvariable
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-selected-repository-organization
      description: GitHub Add Selected Repository to an Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-variables.addselectedrepositorytoanorganizationvariable
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-selected-repository-organization
      description: GitHub Remove Selected Repository from an Organization Variable
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-variables.removeselectedrepositoryfromanorganizationvariable
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.