naftiko: 1.0.0-alpha2 info: label: GitHub Teams API — Repositories description: 'GitHub Teams API — Repositories. 9 operations. Lead operation: GitHub List Team Repositories. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Repositories created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: teams-repositories baseUri: '' description: GitHub Teams API — Repositories 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: GitHub List Team Repositories outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-repos-owner-repo path: /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} operations: - name: checkteampermissionsforrepository method: GET description: GitHub Check Team Permissions for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addorupdateteamrepositorypermissions method: PUT description: GitHub Add or Update Team Repository Permissions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: removerepositoryfromteam method: DELETE description: GitHub Remove Repository from Team outputRawFormat: json outputParameters: - name: result type: object value: $. - name: repos-owner-repo-teams path: /repos/{owner}/{repo}/teams operations: - name: listrepositoryteams method: GET description: GitHub List Repository Teams outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-repos path: /teams/{team_id}/repos operations: - name: listteamrepositorieslegacy method: GET description: GitHub List Team Repositories (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-repos-owner-repo path: /teams/{team_id}/repos/{owner}/{repo} operations: - name: checkteampermissionsforrepositorylegacy method: GET description: GitHub Check Team Permissions for Repository (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addorupdateteamrepositorypermissionslegacy method: PUT description: GitHub Add or Update Team Repository Permissions (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: removerepositoryfromteamlegacy method: DELETE description: GitHub Remove Repository from Team (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: teams-repositories-rest port: 8080 description: REST adapter for GitHub Teams API — Repositories. 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: GitHub List Team Repositories call: teams-repositories.listteamrepositories 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: GitHub Check Team Permissions for Repository call: teams-repositories.checkteampermissionsforrepository outputParameters: - type: object mapping: $. - method: PUT name: addorupdateteamrepositorypermissions description: GitHub Add or Update Team Repository Permissions call: teams-repositories.addorupdateteamrepositorypermissions with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removerepositoryfromteam description: GitHub Remove Repository from Team call: teams-repositories.removerepositoryfromteam 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: GitHub List Repository Teams call: teams-repositories.listrepositoryteams 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: GitHub List Team Repositories (legacy) call: teams-repositories.listteamrepositorieslegacy 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: GitHub Check Team Permissions for Repository (legacy) call: teams-repositories.checkteampermissionsforrepositorylegacy outputParameters: - type: object mapping: $. - method: PUT name: addorupdateteamrepositorypermissionslegacy description: GitHub Add or Update Team Repository Permissions (legacy) call: teams-repositories.addorupdateteamrepositorypermissionslegacy with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removerepositoryfromteamlegacy description: GitHub Remove Repository from Team (legacy) call: teams-repositories.removerepositoryfromteamlegacy outputParameters: - type: object mapping: $. - type: mcp namespace: teams-repositories-mcp port: 9090 transport: http description: MCP adapter for GitHub Teams API — Repositories. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-team-repositories description: GitHub List Team Repositories hints: readOnly: true destructive: false idempotent: true call: teams-repositories.listteamrepositories outputParameters: - type: object mapping: $. - name: github-check-team-permissions-repository description: GitHub Check Team Permissions for Repository hints: readOnly: true destructive: false idempotent: true call: teams-repositories.checkteampermissionsforrepository outputParameters: - type: object mapping: $. - name: github-add-update-team-repository description: GitHub Add or Update Team Repository Permissions hints: readOnly: false destructive: false idempotent: true call: teams-repositories.addorupdateteamrepositorypermissions with: body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-repository-team description: GitHub Remove Repository from Team hints: readOnly: false destructive: true idempotent: true call: teams-repositories.removerepositoryfromteam outputParameters: - type: object mapping: $. - name: github-list-repository-teams description: GitHub List Repository Teams hints: readOnly: true destructive: false idempotent: true call: teams-repositories.listrepositoryteams outputParameters: - type: object mapping: $. - name: github-list-team-repositories-legacy description: GitHub List Team Repositories (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-repositories.listteamrepositorieslegacy outputParameters: - type: object mapping: $. - name: github-check-team-permissions-repository-2 description: GitHub Check Team Permissions for Repository (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-repositories.checkteampermissionsforrepositorylegacy outputParameters: - type: object mapping: $. - name: github-add-update-team-repository-2 description: GitHub Add or Update Team Repository Permissions (legacy) hints: readOnly: false destructive: false idempotent: true call: teams-repositories.addorupdateteamrepositorypermissionslegacy with: body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-repository-team-legacy description: GitHub Remove Repository from Team (legacy) hints: readOnly: false destructive: true idempotent: true call: teams-repositories.removerepositoryfromteamlegacy outputParameters: - type: object mapping: $.