naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Selected description: 'GitHub Repos API — Selected. 16 operations. Lead operation: 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: temp-selected baseUri: '' description: GitHub Repos 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: 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: orgs-org-actions-secrets-secret_name-repositories path: /orgs/{org}/actions/secrets/{secret_name}/repositories operations: - name: listselectedrepositoriesforanorganizationsecret method: GET description: List Selected Repositories For An Organization Secret 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: setselectedrepositoriesforanorganizationsecret method: PUT description: Set Selected Repositories For An Organization Secret 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-secrets-secret_name-repositories-repository_id path: /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id} operations: - name: addselectedrepositorytoanorganizationsecret method: PUT description: 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: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: removeselectedrepositoryfromanorganizationsecret method: DELETE description: 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: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - 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: orgs-org-dependabot-secrets-secret_name-repositories path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories operations: - name: listselectedrepositoriesforanorganizationsecret method: GET description: List Selected Repositories For An Organization Secret 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: setselectedrepositoriesforanorganizationsecret method: PUT description: Set Selected Repositories For An Organization Secret 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-dependabot-secrets-secret_name-repositories-repository_id path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id} operations: - name: addselectedrepositorytoanorganizationsecret method: PUT description: 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: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: removeselectedrepositoryfromanorganizationsecret method: DELETE description: 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: 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-selected-rest port: 8080 description: REST adapter for GitHub Repos 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: List Selected Repositories Enabled For Github Actions In An Organization call: temp-selected.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-selected.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-selected.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-selected.disableselectedrepositoryforgithubactionsinanorganization with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept 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: List Selected Repositories For An Organization Secret call: temp-selected.listselectedrepositoriesforanorganizationsecret with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: setselectedrepositoriesforanorganizationsecret description: Set Selected Repositories For An Organization Secret call: temp-selected.setselectedrepositoriesforanorganizationsecret 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/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: Add Selected Repository To An Organization Secret call: temp-selected.addselectedrepositorytoanorganizationsecret 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: removeselectedrepositoryfromanorganizationsecret description: Remove Selected Repository From An Organization Secret call: temp-selected.removeselectedrepositoryfromanorganizationsecret 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/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-selected.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-selected.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-selected.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-selected.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/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: List Selected Repositories For An Organization Secret call: temp-selected.listselectedrepositoriesforanorganizationsecret with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: setselectedrepositoriesforanorganizationsecret description: Set Selected Repositories For An Organization Secret call: temp-selected.setselectedrepositoriesforanorganizationsecret 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}/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: Add Selected Repository To An Organization Secret call: temp-selected.addselectedrepositorytoanorganizationsecret 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: removeselectedrepositoryfromanorganizationsecret description: Remove Selected Repository From An Organization Secret call: temp-selected.removeselectedrepositoryfromanorganizationsecret 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: $. - type: mcp namespace: temp-selected-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Selected. 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-selected.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-selected.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-selected.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-selected.disableselectedrepositoryforgithubactionsinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: list-selected-repositories-organization-secret description: List Selected Repositories For An Organization Secret hints: readOnly: true destructive: false idempotent: true call: temp-selected.listselectedrepositoriesforanorganizationsecret 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-secret description: Set Selected Repositories For An Organization Secret hints: readOnly: false destructive: false idempotent: true call: temp-selected.setselectedrepositoriesforanorganizationsecret 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-secret description: Add Selected Repository To An Organization Secret hints: readOnly: false destructive: false idempotent: true call: temp-selected.addselectedrepositorytoanorganizationsecret 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-secret description: Remove Selected Repository From An Organization Secret hints: readOnly: false destructive: true idempotent: true call: temp-selected.removeselectedrepositoryfromanorganizationsecret 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-selected-repositories-organization-variable description: List Selected Repositories For An Organization Variable hints: readOnly: true destructive: false idempotent: true call: temp-selected.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-selected.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-selected.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-selected.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-selected-repositories-organization-secret-2 description: List Selected Repositories For An Organization Secret hints: readOnly: true destructive: false idempotent: true call: temp-selected.listselectedrepositoriesforanorganizationsecret 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-secret-2 description: Set Selected Repositories For An Organization Secret hints: readOnly: false destructive: false idempotent: true call: temp-selected.setselectedrepositoriesforanorganizationsecret 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-secret-2 description: Add Selected Repository To An Organization Secret hints: readOnly: false destructive: false idempotent: true call: temp-selected.addselectedrepositorytoanorganizationsecret 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-secret-2 description: Remove Selected Repository From An Organization Secret hints: readOnly: false destructive: true idempotent: true call: temp-selected.removeselectedrepositoryfromanorganizationsecret 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: $.