naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Groups description: 'GitHub Repos API — Groups. 4 operations. Lead operation: List Repository Access To Self-hosted Runner Group In An Organization. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: temp-groups baseUri: '' description: GitHub Repos API — Groups business capability. Self-contained, no shared references. resources: - name: orgs-org-actions-runner-groups-runner_group_id-repositories path: /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories operations: - name: listrepositoryaccesstoselfhostedrunnergroupinanorganization method: GET description: List Repository Access To Self-hosted Runner Group 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: setrepositoryaccessforselfhostedrunnergroupinanorganization method: PUT description: Set Repository Access For Self-hosted Runner Group 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-runner-groups-runner_group_id-repositories-repository_id path: /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id} operations: - name: addrepositoryaccesstoselfhostedrunnergroupinanorganization method: PUT description: Add Repository Access To Self-hosted Runner Group 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: removerepositoryaccesstoselfhostedrunnergroupinanorganization method: DELETE description: Remove Repository Access To Self-hosted Runner Group 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: temp-groups-rest port: 8080 description: REST adapter for GitHub Repos API — Groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories name: orgs-org-actions-runner-groups-runner-group-id-repositories description: REST surface for orgs-org-actions-runner-groups-runner_group_id-repositories. operations: - method: GET name: listrepositoryaccesstoselfhostedrunnergroupinanorganization description: List Repository Access To Self-hosted Runner Group In An Organization call: temp-groups.listrepositoryaccesstoselfhostedrunnergroupinanorganization with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: setrepositoryaccessforselfhostedrunnergroupinanorganization description: Set Repository Access For Self-hosted Runner Group In An Organization call: temp-groups.setrepositoryaccessforselfhostedrunnergroupinanorganization 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/runner-groups/{runner-group-id}/repositories/{repository-id} name: orgs-org-actions-runner-groups-runner-group-id-repositories-repository-id description: REST surface for orgs-org-actions-runner-groups-runner_group_id-repositories-repository_id. operations: - method: PUT name: addrepositoryaccesstoselfhostedrunnergroupinanorganization description: Add Repository Access To Self-hosted Runner Group In An Organization call: temp-groups.addrepositoryaccesstoselfhostedrunnergroupinanorganization with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: DELETE name: removerepositoryaccesstoselfhostedrunnergroupinanorganization description: Remove Repository Access To Self-hosted Runner Group In An Organization call: temp-groups.removerepositoryaccesstoselfhostedrunnergroupinanorganization with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: temp-groups-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-repository-access-self-hosted description: List Repository Access To Self-hosted Runner Group In An Organization hints: readOnly: true destructive: false idempotent: true call: temp-groups.listrepositoryaccesstoselfhostedrunnergroupinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: set-repository-access-self-hosted description: Set Repository Access For Self-hosted Runner Group In An Organization hints: readOnly: false destructive: false idempotent: true call: temp-groups.setrepositoryaccessforselfhostedrunnergroupinanorganization 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-repository-access-self-hosted description: Add Repository Access To Self-hosted Runner Group In An Organization hints: readOnly: false destructive: false idempotent: true call: temp-groups.addrepositoryaccesstoselfhostedrunnergroupinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: remove-repository-access-self-hosted description: Remove Repository Access To Self-hosted Runner Group In An Organization hints: readOnly: false destructive: true idempotent: true call: temp-groups.removerepositoryaccesstoselfhostedrunnergroupinanorganization with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.