naftiko: 1.0.0-alpha2 info: label: github-repos-api — Collaborators description: 'github-repos-api — Collaborators. 4 operations. Lead operation: GitHub List Repository Collaborators. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Collaborators created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: repo-collaborators-collaborators baseUri: '' description: github-repos-api — Collaborators business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-collaborators path: /repos/{owner}/{repo}/collaborators operations: - name: listrepositorycollaborators method: GET description: GitHub List Repository Collaborators outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: affiliation in: query type: string description: Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborat - name: permission in: query type: string description: Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. - 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-collaborators-username path: /repos/{owner}/{repo}/collaborators/{username} operations: - name: checkifuserisrepositorycollaborator method: GET description: GitHub Check if User is Repository Collaborator 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: addrepositorycollaborator method: PUT description: GitHub Add Repository Collaborator 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 - name: removerepositorycollaborator method: DELETE description: GitHub Remove Repository Collaborator 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: repo-collaborators-collaborators-rest port: 8080 description: REST adapter for github-repos-api — Collaborators. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/collaborators name: repos-owner-repo-collaborators description: REST surface for repos-owner-repo-collaborators. operations: - method: GET name: listrepositorycollaborators description: GitHub List Repository Collaborators call: repo-collaborators-collaborators.listrepositorycollaborators with: affiliation: rest.affiliation permission: rest.permission Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/collaborators/{username} name: repos-owner-repo-collaborators-username description: REST surface for repos-owner-repo-collaborators-username. operations: - method: GET name: checkifuserisrepositorycollaborator description: GitHub Check if User is Repository Collaborator call: repo-collaborators-collaborators.checkifuserisrepositorycollaborator with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: addrepositorycollaborator description: GitHub Add Repository Collaborator call: repo-collaborators-collaborators.addrepositorycollaborator with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removerepositorycollaborator description: GitHub Remove Repository Collaborator call: repo-collaborators-collaborators.removerepositorycollaborator with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: repo-collaborators-collaborators-mcp port: 9090 transport: http description: MCP adapter for github-repos-api — Collaborators. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-repository-collaborators description: GitHub List Repository Collaborators hints: readOnly: true destructive: false idempotent: true call: repo-collaborators-collaborators.listrepositorycollaborators with: affiliation: tools.affiliation permission: tools.permission Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-check-if-user-is description: GitHub Check if User is Repository Collaborator hints: readOnly: true destructive: false idempotent: true call: repo-collaborators-collaborators.checkifuserisrepositorycollaborator with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-add-repository-collaborator description: GitHub Add Repository Collaborator hints: readOnly: false destructive: false idempotent: true call: repo-collaborators-collaborators.addrepositorycollaborator with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-repository-collaborator description: GitHub Remove Repository Collaborator hints: readOnly: false destructive: true idempotent: true call: repo-collaborators-collaborators.removerepositorycollaborator with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.