GitHub · Capability

GitHub Org API — Actions

GitHub Org API — Actions. 10 operations. Lead operation: GitHub Get Github Actions Cache Usage for an Organization. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubActions

What You Can Do

GET
Getgithubactionscacheusageforanorganization — GitHub Get Github Actions Cache Usage for an Organization
/v1/orgs/{org}/actions/cache/usage
GET
Listrepositorieswithgithubactionscacheusageforanorganization — GitHub List Repositories with Github Actions Cache Usage for an Organization
/v1/orgs/{org}/actions/cache/usage-by-repository
GET
Getgithubactionspermissionsforanorganization — GitHub Get Github Actions Permissions for an Organization
/v1/orgs/{org}/actions/permissions
PUT
Setgithubactionspermissionsforanorganization — GitHub Set Github Actions Permissions for an Organization
/v1/orgs/{org}/actions/permissions
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
Getallowedactionsforanorganization — GitHub Get Allowed Actions for an Organization
/v1/orgs/{org}/actions/permissions/selected-actions
PUT
Setallowedactionsforanorganization — GitHub Set Allowed Actions for an Organization
/v1/orgs/{org}/actions/permissions/selected-actions

MCP Tools

github-get-github-actions-cache

GitHub Get Github Actions Cache Usage for an Organization

read-only idempotent
github-list-repositories-github-actions

GitHub List Repositories with Github Actions Cache Usage for an Organization

read-only idempotent
github-get-github-actions-permissions

GitHub Get Github Actions Permissions for an Organization

read-only idempotent
github-set-github-actions-permissions

GitHub Set Github Actions Permissions for an Organization

idempotent
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-get-allowed-actions-organization

GitHub Get Allowed Actions for an Organization

read-only idempotent
github-set-allowed-actions-organization

GitHub Set Allowed Actions for an Organization

idempotent

Capability Spec

organizations-actions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Actions
  description: 'GitHub Org API — Actions. 10 operations. Lead operation: GitHub Get Github Actions Cache Usage for an Organization.
    Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Actions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-actions
    baseUri: ''
    description: GitHub Org API — Actions business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-cache-usage
      path: /orgs/{org}/actions/cache/usage
      operations:
      - name: getgithubactionscacheusageforanorganization
        method: GET
        description: GitHub Get Github Actions Cache Usage for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-cache-usage-by-repository
      path: /orgs/{org}/actions/cache/usage-by-repository
      operations:
      - name: listrepositorieswithgithubactionscacheusageforanorganization
        method: GET
        description: GitHub List Repositories with Github Actions Cache Usage for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-permissions
      path: /orgs/{org}/actions/permissions
      operations:
      - name: getgithubactionspermissionsforanorganization
        method: GET
        description: GitHub Get Github Actions Permissions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setgithubactionspermissionsforanorganization
        method: PUT
        description: GitHub Set Github Actions Permissions for 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
      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-permissions-selected-actions
      path: /orgs/{org}/actions/permissions/selected-actions
      operations:
      - name: getallowedactionsforanorganization
        method: GET
        description: GitHub Get Allowed Actions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setallowedactionsforanorganization
        method: PUT
        description: GitHub Set Allowed Actions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-actions-rest
    port: 8080
    description: REST adapter for GitHub Org API — Actions. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/cache/usage
      name: orgs-org-actions-cache-usage
      description: REST surface for orgs-org-actions-cache-usage.
      operations:
      - method: GET
        name: getgithubactionscacheusageforanorganization
        description: GitHub Get Github Actions Cache Usage for an Organization
        call: organizations-actions.getgithubactionscacheusageforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/cache/usage-by-repository
      name: orgs-org-actions-cache-usage-by-repository
      description: REST surface for orgs-org-actions-cache-usage-by-repository.
      operations:
      - method: GET
        name: listrepositorieswithgithubactionscacheusageforanorganization
        description: GitHub List Repositories with Github Actions Cache Usage for an Organization
        call: organizations-actions.listrepositorieswithgithubactionscacheusageforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/permissions
      name: orgs-org-actions-permissions
      description: REST surface for orgs-org-actions-permissions.
      operations:
      - method: GET
        name: getgithubactionspermissionsforanorganization
        description: GitHub Get Github Actions Permissions for an Organization
        call: organizations-actions.getgithubactionspermissionsforanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setgithubactionspermissionsforanorganization
        description: GitHub Set Github Actions Permissions for an Organization
        call: organizations-actions.setgithubactionspermissionsforanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - 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-actions.listselectedrepositoriesenabledforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesenabledforgithubactionsinanorganization
        description: GitHub Set Selected Repositories Enabled for Github Actions in an Organization
        call: organizations-actions.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-actions.enableselectedrepositoryforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: disableselectedrepositoryforgithubactionsinanorganization
        description: GitHub Disable Selected Repository for Github Actions in an Organization
        call: organizations-actions.disableselectedrepositoryforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/permissions/selected-actions
      name: orgs-org-actions-permissions-selected-actions
      description: REST surface for orgs-org-actions-permissions-selected-actions.
      operations:
      - method: GET
        name: getallowedactionsforanorganization
        description: GitHub Get Allowed Actions for an Organization
        call: organizations-actions.getallowedactionsforanorganization
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setallowedactionsforanorganization
        description: GitHub Set Allowed Actions for an Organization
        call: organizations-actions.setallowedactionsforanorganization
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: organizations-actions-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Org API — Actions. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-github-actions-cache
      description: GitHub Get Github Actions Cache Usage for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-actions.getgithubactionscacheusageforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-repositories-github-actions
      description: GitHub List Repositories with Github Actions Cache Usage for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-actions.listrepositorieswithgithubactionscacheusageforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-github-actions-permissions
      description: GitHub Get Github Actions Permissions for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-actions.getgithubactionspermissionsforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-github-actions-permissions
      description: GitHub Set Github Actions Permissions for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-actions.setgithubactionspermissionsforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - 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-actions.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-actions.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-actions.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-actions.disableselectedrepositoryforgithubactionsinanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-allowed-actions-organization
      description: GitHub Get Allowed Actions for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: organizations-actions.getallowedactionsforanorganization
      outputParameters:
      - type: object
        mapping: $.
    - name: github-set-allowed-actions-organization
      description: GitHub Set Allowed Actions for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: organizations-actions.setallowedactionsforanorganization
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.