naftiko: 1.0.0-alpha2 info: label: GitHub Repos API — Teams description: 'GitHub Repos API — Teams. 13 operations. Lead operation: List Team Repositories. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Teams created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: temp-teams baseUri: '' description: GitHub Repos API — Teams business capability. Self-contained, no shared references. resources: - name: orgs-org-teams-team_slug-repos path: /orgs/{org}/teams/{team_slug}/repos operations: - name: listteamrepositories method: GET description: List Team Repositories 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-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: addorupdateteamrepositorypermissions method: PUT description: Add Or Update Team Repository Permissions 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: removerepositoryfromteam method: DELETE description: Remove Repository From Team 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-branches-branch-protection-restrictions-teams path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams operations: - name: getteamswithaccesstotheprotectedbranch method: GET description: Get Teams With Access To The Protected Branch 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: addteamaccessrestrictions method: POST description: Add Team Access Restrictions 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: setteamaccessrestrictions method: PUT description: Set Team Access Restrictions 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: removeteamaccessrestrictions method: DELETE description: Remove Team Access Restrictions 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: repos-owner-repo-teams path: /repos/{owner}/{repo}/teams operations: - name: listrepositoryteams method: GET description: List Repository Teams 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: teams-team_id-repos path: /teams/{team_id}/repos operations: - name: listteamrepositorieslegacy method: GET description: List Team Repositories (legacy) 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: teams-team_id-repos-owner-repo path: /teams/{team_id}/repos/{owner}/{repo} operations: - name: checkteampermissionsforrepositorylegacy method: GET description: Check Team Permissions For Repository (legacy) 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: addorupdateteamrepositorypermissionslegacy method: PUT description: Add Or Update Team Repository Permissions (legacy) 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: removerepositoryfromteamlegacy method: DELETE description: Remove Repository From Team (legacy) 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-teams-rest port: 8080 description: REST adapter for GitHub Repos API — Teams. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/teams/{team-slug}/repos name: orgs-org-teams-team-slug-repos description: REST surface for orgs-org-teams-team_slug-repos. operations: - method: GET name: listteamrepositories description: List Team Repositories call: temp-teams.listteamrepositories with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - 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-teams.checkteampermissionsforrepository with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: addorupdateteamrepositorypermissions description: Add Or Update Team Repository Permissions call: temp-teams.addorupdateteamrepositorypermissions 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: removerepositoryfromteam description: Remove Repository From Team call: temp-teams.removerepositoryfromteam 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}/branches/{branch}/protection/restrictions/teams name: repos-owner-repo-branches-branch-protection-restrictions-teams description: REST surface for repos-owner-repo-branches-branch-protection-restrictions-teams. operations: - method: GET name: getteamswithaccesstotheprotectedbranch description: Get Teams With Access To The Protected Branch call: temp-teams.getteamswithaccesstotheprotectedbranch with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: addteamaccessrestrictions description: Add Team Access Restrictions call: temp-teams.addteamaccessrestrictions with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: setteamaccessrestrictions description: Set Team Access Restrictions call: temp-teams.setteamaccessrestrictions 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: removeteamaccessrestrictions description: Remove Team Access Restrictions call: temp-teams.removeteamaccessrestrictions 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}/teams name: repos-owner-repo-teams description: REST surface for repos-owner-repo-teams. operations: - method: GET name: listrepositoryteams description: List Repository Teams call: temp-teams.listrepositoryteams with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/repos name: teams-team-id-repos description: REST surface for teams-team_id-repos. operations: - method: GET name: listteamrepositorieslegacy description: List Team Repositories (legacy) call: temp-teams.listteamrepositorieslegacy with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/repos/{owner}/{repo} name: teams-team-id-repos-owner-repo description: REST surface for teams-team_id-repos-owner-repo. operations: - method: GET name: checkteampermissionsforrepositorylegacy description: Check Team Permissions For Repository (legacy) call: temp-teams.checkteampermissionsforrepositorylegacy with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PUT name: addorupdateteamrepositorypermissionslegacy description: Add Or Update Team Repository Permissions (legacy) call: temp-teams.addorupdateteamrepositorypermissionslegacy 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: removerepositoryfromteamlegacy description: Remove Repository From Team (legacy) call: temp-teams.removerepositoryfromteamlegacy with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: temp-teams-mcp port: 9090 transport: http description: MCP adapter for GitHub Repos API — Teams. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-team-repositories description: List Team Repositories hints: readOnly: true destructive: false idempotent: true call: temp-teams.listteamrepositories with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: check-team-permissions-repository description: Check Team Permissions For Repository hints: readOnly: true destructive: false idempotent: true call: temp-teams.checkteampermissionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: add-update-team-repository-permissions description: Add Or Update Team Repository Permissions hints: readOnly: false destructive: false idempotent: true call: temp-teams.addorupdateteamrepositorypermissions with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: remove-repository-team description: Remove Repository From Team hints: readOnly: false destructive: true idempotent: true call: temp-teams.removerepositoryfromteam with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: get-teams-access-protected-branch description: Get Teams With Access To The Protected Branch hints: readOnly: true destructive: false idempotent: true call: temp-teams.getteamswithaccesstotheprotectedbranch with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: add-team-access-restrictions description: Add Team Access Restrictions hints: readOnly: false destructive: false idempotent: false call: temp-teams.addteamaccessrestrictions with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: set-team-access-restrictions description: Set Team Access Restrictions hints: readOnly: false destructive: false idempotent: true call: temp-teams.setteamaccessrestrictions with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: remove-team-access-restrictions description: Remove Team Access Restrictions hints: readOnly: false destructive: true idempotent: true call: temp-teams.removeteamaccessrestrictions 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-repository-teams description: List Repository Teams hints: readOnly: true destructive: false idempotent: true call: temp-teams.listrepositoryteams with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: list-team-repositories-legacy description: List Team Repositories (legacy) hints: readOnly: true destructive: false idempotent: true call: temp-teams.listteamrepositorieslegacy with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: check-team-permissions-repository-legacy description: Check Team Permissions For Repository (legacy) hints: readOnly: true destructive: false idempotent: true call: temp-teams.checkteampermissionsforrepositorylegacy with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: add-update-team-repository-permissions-2 description: Add Or Update Team Repository Permissions (legacy) hints: readOnly: false destructive: false idempotent: true call: temp-teams.addorupdateteamrepositorypermissionslegacy with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: remove-repository-team-legacy description: Remove Repository From Team (legacy) hints: readOnly: false destructive: true idempotent: true call: temp-teams.removerepositoryfromteamlegacy with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.