naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Actions description: 'GitHub Repos API — Actions. 14 operations. Lead operation: List Selected Repositories Enabled For Github Actions In 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: temp-actions baseUri: '' description: GitHub Repos API — Actions 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: List Selected Repositories Enabled For Github Actions In An Organization 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: setselectedrepositoriesenabledforgithubactionsinanorganization method: PUT description: Set Selected Repositories Enabled For Github Actions In An Organization 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-permissions-repositories-repository_id path: /orgs/{org}/actions/permissions/repositories/{repository_id} operations: - name: enableselectedrepositoryforgithubactionsinanorganization method: PUT description: Enable Selected Repository For Github Actions In An Organization 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: disableselectedrepositoryforgithubactionsinanorganization method: DELETE description: Disable Selected Repository For Github Actions In An Organization 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-cache-usage path: /repos/{owner}/{repo}/actions/cache/usage operations: - name: getgithubactionscacheusageforrepository method: GET description: Get Github Actions Cache Usage For Repository 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-cache-usage-policy path: /repos/{owner}/{repo}/actions/cache/usage-policy operations: - name: getgithubactionscacheusagepolicyforrepository method: GET description: Get Github Actions Cache Usage Policy For Repository 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: setgithubactionscacheusagepolicyforrepository method: PATCH description: Set Github Actions Cache Usage Policy For Repository 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-caches path: /repos/{owner}/{repo}/actions/caches operations: - name: listgithubactionscachesforrepository method: GET description: List Github Actions Caches For Repository 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: deletegithubactionscachesforrepositoryusingcachekey method: DELETE description: Delete Github Actions Caches For Repository (using Cache Key) 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-caches-cache_id path: /repos/{owner}/{repo}/actions/caches/{cache_id} operations: - name: deletegithubactionscacheforrepositoryusingcacheid method: DELETE description: Delete Github Actions Cache For Repository (using Cache Id) 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-permissions path: /repos/{owner}/{repo}/actions/permissions operations: - name: getgithubactionspermissionsforrepository method: GET description: Get Github Actions Permissions For Repository 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: setgithubactionspermissionsforrepository method: PUT description: Set Github Actions Permissions For Repository 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-permissions-selected-actions path: /repos/{owner}/{repo}/actions/permissions/selected-actions operations: - name: getallowedactionsforrepository method: GET description: Get Allowed Actions For Repository 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: setallowedactionsforrepository method: PUT description: Set Allowed Actions For Repository 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-actions-rest port: 8080 description: REST adapter for GitHub Repos API — Actions. 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: List Selected Repositories Enabled For Github Actions In An Organization call: temp-actions.listselectedrepositoriesenabledforgithubactionsinanorganization with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: setselectedrepositoriesenabledforgithubactionsinanorganization description: Set Selected Repositories Enabled For Github Actions In An Organization call: temp-actions.setselectedrepositoriesenabledforgithubactionsinanorganization 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/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: Enable Selected Repository For Github Actions In An Organization call: temp-actions.enableselectedrepositoryforgithubactionsinanorganization with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: DELETE name: disableselectedrepositoryforgithubactionsinanorganization description: Disable Selected Repository For Github Actions In An Organization call: temp-actions.disableselectedrepositoryforgithubactionsinanorganization 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/cache/usage name: repos-owner-repo-actions-cache-usage description: REST surface for repos-owner-repo-actions-cache-usage. operations: - method: GET name: getgithubactionscacheusageforrepository description: Get Github Actions Cache Usage For Repository call: temp-actions.getgithubactionscacheusageforrepository 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/cache/usage-policy name: repos-owner-repo-actions-cache-usage-policy description: REST surface for repos-owner-repo-actions-cache-usage-policy. operations: - method: GET name: getgithubactionscacheusagepolicyforrepository description: Get Github Actions Cache Usage Policy For Repository call: temp-actions.getgithubactionscacheusagepolicyforrepository with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PATCH name: setgithubactionscacheusagepolicyforrepository description: Set Github Actions Cache Usage Policy For Repository call: temp-actions.setgithubactionscacheusagepolicyforrepository 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/caches name: repos-owner-repo-actions-caches description: REST surface for repos-owner-repo-actions-caches. operations: - method: GET name: listgithubactionscachesforrepository description: List Github Actions Caches For Repository call: temp-actions.listgithubactionscachesforrepository with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: DELETE name: deletegithubactionscachesforrepositoryusingcachekey description: Delete Github Actions Caches For Repository (using Cache Key) call: temp-actions.deletegithubactionscachesforrepositoryusingcachekey 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/caches/{cache-id} name: repos-owner-repo-actions-caches-cache-id description: REST surface for repos-owner-repo-actions-caches-cache_id. operations: - method: DELETE name: deletegithubactionscacheforrepositoryusingcacheid description: Delete Github Actions Cache For Repository (using Cache Id) call: temp-actions.deletegithubactionscacheforrepositoryusingcacheid 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/permissions name: repos-owner-repo-actions-permissions description: REST surface for repos-owner-repo-actions-permissions. operations: - method: GET name: getgithubactionspermissionsforrepository description: Get Github Actions Permissions For Repository call: temp-actions.getgithubactionspermissionsforrepository with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: setgithubactionspermissionsforrepository description: Set Github Actions Permissions For Repository call: temp-actions.setgithubactionspermissionsforrepository 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/permissions/selected-actions name: repos-owner-repo-actions-permissions-selected-actions description: REST surface for repos-owner-repo-actions-permissions-selected-actions. operations: - method: GET name: getallowedactionsforrepository description: Get Allowed Actions For Repository call: temp-actions.getallowedactionsforrepository with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: setallowedactionsforrepository description: Set Allowed Actions For Repository call: temp-actions.setallowedactionsforrepository 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-actions-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Actions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-selected-repositories-enabled-github description: List Selected Repositories Enabled For Github Actions In An Organization hints: readOnly: true destructive: false idempotent: true call: temp-actions.listselectedrepositoriesenabledforgithubactionsinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: set-selected-repositories-enabled-github description: Set Selected Repositories Enabled For Github Actions In An Organization hints: readOnly: false destructive: false idempotent: true call: temp-actions.setselectedrepositoriesenabledforgithubactionsinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: enable-selected-repository-github-actions description: Enable Selected Repository For Github Actions In An Organization hints: readOnly: false destructive: false idempotent: true call: temp-actions.enableselectedrepositoryforgithubactionsinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: disable-selected-repository-github-actions description: Disable Selected Repository For Github Actions In An Organization hints: readOnly: false destructive: true idempotent: true call: temp-actions.disableselectedrepositoryforgithubactionsinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-github-actions-cache-usage description: Get Github Actions Cache Usage For Repository hints: readOnly: true destructive: false idempotent: true call: temp-actions.getgithubactionscacheusageforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-github-actions-cache-usage-2 description: Get Github Actions Cache Usage Policy For Repository hints: readOnly: true destructive: false idempotent: true call: temp-actions.getgithubactionscacheusagepolicyforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: set-github-actions-cache-usage description: Set Github Actions Cache Usage Policy For Repository hints: readOnly: false destructive: false idempotent: true call: temp-actions.setgithubactionscacheusagepolicyforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: list-github-actions-caches-repository description: List Github Actions Caches For Repository hints: readOnly: true destructive: false idempotent: true call: temp-actions.listgithubactionscachesforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: delete-github-actions-caches-repository description: Delete Github Actions Caches For Repository (using Cache Key) hints: readOnly: false destructive: true idempotent: true call: temp-actions.deletegithubactionscachesforrepositoryusingcachekey with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: delete-github-actions-cache-repository description: Delete Github Actions Cache For Repository (using Cache Id) hints: readOnly: false destructive: true idempotent: true call: temp-actions.deletegithubactionscacheforrepositoryusingcacheid with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-github-actions-permissions-repository description: Get Github Actions Permissions For Repository hints: readOnly: true destructive: false idempotent: true call: temp-actions.getgithubactionspermissionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: set-github-actions-permissions-repository description: Set Github Actions Permissions For Repository hints: readOnly: false destructive: false idempotent: true call: temp-actions.setgithubactionspermissionsforrepository 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-allowed-actions-repository description: Get Allowed Actions For Repository hints: readOnly: true destructive: false idempotent: true call: temp-actions.getallowedactionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: set-allowed-actions-repository description: Set Allowed Actions For Repository hints: readOnly: false destructive: false idempotent: true call: temp-actions.setallowedactionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $.