naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Check description: 'GitHub Repos API — Check. 2 operations. Lead operation: Check Team Permissions For Repository. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Check created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: temp-check baseUri: '' description: GitHub Repos API — Check business capability. Self-contained, no shared references. resources: - name: orgs-org-teams-team_slug-repos-owner-repo path: /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} operations: - name: checkteampermissionsforrepository method: GET description: Check Team 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: repos-owner-repo-assignees-assignee path: /repos/{owner}/{repo}/assignees/{assignee} operations: - name: checkifusercanbeassigned method: GET description: Check If User Can Be Assigned outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: assignee in: path type: string 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-check-rest port: 8080 description: REST adapter for GitHub Repos API — Check. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/teams/{team-slug}/repos/{owner}/{repo} name: orgs-org-teams-team-slug-repos-owner-repo description: REST surface for orgs-org-teams-team_slug-repos-owner-repo. operations: - method: GET name: checkteampermissionsforrepository description: Check Team Permissions For Repository call: temp-check.checkteampermissionsforrepository 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}/assignees/{assignee} name: repos-owner-repo-assignees-assignee description: REST surface for repos-owner-repo-assignees-assignee. operations: - method: GET name: checkifusercanbeassigned description: Check If User Can Be Assigned call: temp-check.checkifusercanbeassigned with: assignee: rest.assignee Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: temp-check-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Check. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: check-team-permissions-repository description: Check Team Permissions For Repository hints: readOnly: true destructive: false idempotent: true call: temp-check.checkteampermissionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: check-if-user-can-be description: Check If User Can Be Assigned hints: readOnly: true destructive: false idempotent: true call: temp-check.checkifusercanbeassigned with: assignee: tools.assignee Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.