GitHub · Capability

GitHub Org API — Selected

GitHub Org API — Selected. 16 operations. Lead operation: GitHub List Selected Repositories Enabled for Github Actions in an Organization. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubSelected

What You Can Do

GET
Listselectedrepositoriesenabledforgithubactionsinanorganization — GitHub List Selected Repositories Enabled for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories
PUT
Setselectedrepositoriesenabledforgithubactionsinanorganization — GitHub Set Selected Repositories Enabled for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories
PUT
Enableselectedrepositoryforgithubactionsinanorganization — GitHub Enable Selected Repository for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories/{repository-id}
DELETE
Disableselectedrepositoryforgithubactionsinanorganization — GitHub Disable Selected Repository for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories/{repository-id}
GET
Listselectedrepositoriesforanorganizationsecret — GitHub List Selected Repositories for an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories
PUT
Setselectedrepositoriesforanorganizationsecret — GitHub Set Selected Repositories for an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories
PUT
Addselectedrepositorytoanorganizationsecret — GitHub Add Selected Repository to an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationsecret — GitHub Remove Selected Repository from an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
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}
GET
Listselectedrepositoriesforanorganizationsecret — GitHub List Selected Repositories for an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
PUT
Setselectedrepositoriesforanorganizationsecret — GitHub Set Selected Repositories for an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
PUT
Addselectedrepositorytoanorganizationsecret — GitHub Add Selected Repository to an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationsecret — GitHub Remove Selected Repository from an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}

MCP Tools

github-list-selected-repositories-enabled

GitHub List Selected Repositories Enabled for Github Actions in an Organization

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

GitHub Set Selected Repositories Enabled for Github Actions in an Organization

idempotent
github-enable-selected-repository-github

GitHub Enable Selected Repository for Github Actions in an Organization

idempotent
github-disable-selected-repository-github

GitHub Disable Selected Repository for Github Actions in an Organization

idempotent
github-list-selected-repositories-organization

GitHub List Selected Repositories for an Organization Secret

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

GitHub Set Selected Repositories for an Organization Secret

idempotent
github-add-selected-repository-organization

GitHub Add Selected Repository to an Organization Secret

idempotent
github-remove-selected-repository-organization

GitHub Remove Selected Repository from an Organization Secret

idempotent
github-list-selected-repositories-organization-2

GitHub List Selected Repositories for an Organization Variable

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

GitHub Set Selected Repositories for an Organization Variable

idempotent
github-add-selected-repository-organization-2

GitHub Add Selected Repository to an Organization Variable

idempotent
github-remove-selected-repository-organization-2

GitHub Remove Selected Repository from an Organization Variable

idempotent
github-list-selected-repositories-organization-3

GitHub List Selected Repositories for an Organization Secret

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

GitHub Set Selected Repositories for an Organization Secret

idempotent
github-add-selected-repository-organization-3

GitHub Add Selected Repository to an Organization Secret

idempotent
github-remove-selected-repository-organization-3

GitHub Remove Selected Repository from an Organization Secret

idempotent

Capability Spec

organizations-selected.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Selected
  description: 'GitHub Org API — Selected. 16 operations. Lead operation: GitHub List Selected Repositories Enabled for Github
    Actions in an Organization. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Selected
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-selected
    baseUri: ''
    description: GitHub Org API — Selected business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-permissions-repositories
      path: /orgs/{org}/actions/permissions/repositories
      operations:
      - name: listselectedrepositoriesenabledforgithubactionsinanorganization
        method: GET
        description: GitHub List Selected Repositories Enabled for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesenabledforgithubactionsinanorganization
        method: PUT
        description: GitHub Set Selected Repositories Enabled for Github Actions in an Organization
        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-permissions-repositories-repository_id
      path: /orgs/{org}/actions/permissions/repositories/{repository_id}
      operations:
      - name: enableselectedrepositoryforgithubactionsinanorganization
        method: PUT
        description: GitHub Enable Selected Repository for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: disableselectedrepositoryforgithubactionsinanorganization
        method: DELETE
        description: GitHub Disable Selected Repository for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-secrets-secret_name-repositories
      path: /orgs/{org}/actions/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: GitHub List Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesforanorganizationsecret
        method: PUT
        description: GitHub Set Selected Repositories for an Organization Secret
        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-secrets-secret_name-repositories-repository_id
      path: /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationsecret
        method: PUT
        description: GitHub Add Selected Repository to an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
      - name: removeselectedrepositoryfromanorganizationsecret
        method: DELETE
        description: GitHub Remove Selected Repository from an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
    - 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
    - name: orgs-org-dependabot-secrets-secret_name-repositories
      path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: GitHub List Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setselectedrepositoriesforanorganizationsecret
        method: PUT
        description: GitHub Set Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-dependabot-secrets-secret_name-repositories-repository_id
      path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationsecret
        method: PUT
        description: GitHub Add Selected Repository to an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
      - name: removeselectedrepositoryfromanorganizationsecret
        method: DELETE
        description: GitHub Remove Selected Repository from an Organization Secret
        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-selected-rest
    port: 8080
    description: REST adapter for GitHub Org API — Selected. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/permissions/repositories
      name: orgs-org-actions-permissions-repositories
      description: REST surface for orgs-org-actions-permissions-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesenabledforgithubactionsinanorganization
        description: GitHub List Selected Repositories Enabled for Github Actions in an Organization
        call: organizations-selected.listselectedrepositoriesenabledforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesenabledforgithubactionsinanorganization
        description: GitHub Set Selected Repositories Enabled for Github Actions in an Organization
        call: organizations-selected.setselectedrepositoriesenabledforgithubactionsinanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/permissions/repositories/{repository-id}
      name: orgs-org-actions-permissions-repositories-repository-id
      description: REST surface for orgs-org-actions-permissions-repositories-repository_id.
      operations:
      - method: PUT
        name: enableselectedrepositoryforgithubactionsinanorganization
        description: GitHub Enable Selected Repository for Github Actions in an Organization
        call: organizations-selected.enableselectedrepositoryforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: disableselectedrepositoryforgithubactionsinanorganization
        description: GitHub Disable Selected Repository for Github Actions in an Organization
        call: organizations-selected.disableselectedrepositoryforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories
      name: orgs-org-actions-secrets-secret-name-repositories
      description: REST surface for orgs-org-actions-secrets-secret_name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationsecret
        description: GitHub List Selected Repositories for an Organization Secret
        call: organizations-selected.listselectedrepositoriesforanorganizationsecret
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationsecret
        description: GitHub Set Selected Repositories for an Organization Secret
        call: organizations-selected.setselectedrepositoriesforanorganizationsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
      name: orgs-org-actions-secrets-secret-name-repositories-repository-id
      description: REST surface for orgs-org-actions-secrets-secret_name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationsecret
        description: GitHub Add Selected Repository to an Organization Secret
        call: organizations-selected.addselectedrepositorytoanorganizationsecret
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationsecret
        description: GitHub Remove Selected Repository from an Organization Secret
        call: organizations-selected.removeselectedrepositoryfromanorganizationsecret
        with:
          repository_id: rest.repository_id
        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-selected.listselectedrepositoriesforanorganizationvariable
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationvariable
        description: GitHub Set Selected Repositories for an Organization Variable
        call: organizations-selected.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-selected.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-selected.removeselectedrepositoryfromanorganizationvariable
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
      name: orgs-org-dependabot-secrets-secret-name-repositories
      description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationsecret
        description: GitHub List Selected Repositories for an Organization Secret
        call: organizations-selected.listselectedrepositoriesforanorganizationsecret
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationsecret
        description: GitHub Set Selected Repositories for an Organization Secret
        call: organizations-selected.setselectedrepositoriesforanorganizationsecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
      name: orgs-org-dependabot-secrets-secret-name-repositories-repository-id
      description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationsecret
        description: GitHub Add Selected Repository to an Organization Secret
        call: organizations-selected.addselectedrepositorytoanorganizationsecret
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationsecret
        description: GitHub Remove Selected Repository from an Organization Secret
        call: organizations-selected.removeselectedrepositoryfromanorganizationsecret
        with:
          repository_id: rest.repository_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-selected-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Selected. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-list-selected-repositories-enabled
      description: GitHub List Selected Repositories Enabled for Github Actions in an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-selected.listselectedrepositoriesenabledforgithubactionsinanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-selected-repositories-enabled
      description: GitHub Set Selected Repositories Enabled for Github Actions in an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.setselectedrepositoriesenabledforgithubactionsinanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-enable-selected-repository-github
      description: GitHub Enable Selected Repository for Github Actions in an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.enableselectedrepositoryforgithubactionsinanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-disable-selected-repository-github
      description: GitHub Disable Selected Repository for Github Actions in an Organization
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-selected.disableselectedrepositoryforgithubactionsinanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-selected-repositories-organization
      description: GitHub List Selected Repositories for an Organization Secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-selected.listselectedrepositoriesforanorganizationsecret
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-selected-repositories-organization
      description: GitHub Set Selected Repositories for an Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.setselectedrepositoriesforanorganizationsecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-selected-repository-organization
      description: GitHub Add Selected Repository to an Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.addselectedrepositorytoanorganizationsecret
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-selected-repository-organization
      description: GitHub Remove Selected Repository from an Organization Secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-selected.removeselectedrepositoryfromanorganizationsecret
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-selected-repositories-organization-2
      description: GitHub List Selected Repositories for an Organization Variable
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-selected.listselectedrepositoriesforanorganizationvariable
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-selected-repositories-organization-2
      description: GitHub Set Selected Repositories for an Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.setselectedrepositoriesforanorganizationvariable
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-selected-repository-organization-2
      description: GitHub Add Selected Repository to an Organization Variable
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.addselectedrepositorytoanorganizationvariable
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-selected-repository-organization-2
      description: GitHub Remove Selected Repository from an Organization Variable
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-selected.removeselectedrepositoryfromanorganizationvariable
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-selected-repositories-organization-3
      description: GitHub List Selected Repositories for an Organization Secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-selected.listselectedrepositoriesforanorganizationsecret
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-selected-repositories-organization-3
      description: GitHub Set Selected Repositories for an Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.setselectedrepositoriesforanorganizationsecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-selected-repository-organization-3
      description: GitHub Add Selected Repository to an Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-selected.addselectedrepositorytoanorganizationsecret
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-selected-repository-organization-3
      description: GitHub Remove Selected Repository from an Organization Secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: organizations-selected.removeselectedrepositoryfromanorganizationsecret
      with:
        repository_id: tools.repository_id
      outputParameters:
      - type: object
        mapping: $.