naftiko: 1.0.0-alpha2 info: label: GitHub Teams API — Add description: 'GitHub Teams API — Add. 9 operations. Lead operation: GitHub Add Security Manager Team. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Add created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: teams-add baseUri: '' description: GitHub Teams API — Add business capability. Self-contained, no shared references. resources: - name: orgs-org-security-managers-teams-team_slug path: /orgs/{org}/security-managers/teams/{team_slug} operations: - name: addsecuritymanagerteam method: PUT description: GitHub Add Security Manager Team outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-memberships-username path: /orgs/{org}/teams/{team_slug}/memberships/{username} operations: - name: addorupdateteammembershipforuser method: PUT description: GitHub Add or Update Team Membership for User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: orgs-org-teams-team_slug-projects-project_id path: /orgs/{org}/teams/{team_slug}/projects/{project_id} operations: - name: addorupdateteamprojectpermissions method: PUT description: GitHub Add or Update Team Project Permissions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: orgs-org-teams-team_slug-repos-owner-repo path: /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} operations: - 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: repos-owner-repo-branches-branch-protection-restrictions-teams path: /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams operations: - name: addteamaccessrestrictions method: POST description: GitHub Add Team Access Restrictions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: teams-team_id-members-username path: /teams/{team_id}/members/{username} operations: - name: addteammemberlegacy method: PUT description: GitHub Add Team Member (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-memberships-username path: /teams/{team_id}/memberships/{username} operations: - name: addorupdateteammembershipforuserlegacy method: PUT description: GitHub Add or Update Team Membership for User (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: teams-team_id-projects-project_id path: /teams/{team_id}/projects/{project_id} operations: - name: addorupdateteamprojectpermissionslegacy method: PUT description: GitHub Add or Update Team Project Permissions (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: teams-team_id-repos-owner-repo path: /teams/{team_id}/repos/{owner}/{repo} operations: - 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: teams-add-rest port: 8080 description: REST adapter for GitHub Teams API — Add. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/security-managers/teams/{team-slug} name: orgs-org-security-managers-teams-team-slug description: REST surface for orgs-org-security-managers-teams-team_slug. operations: - method: PUT name: addsecuritymanagerteam description: GitHub Add Security Manager Team call: teams-add.addsecuritymanagerteam outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/memberships/{username} name: orgs-org-teams-team-slug-memberships-username description: REST surface for orgs-org-teams-team_slug-memberships-username. operations: - method: PUT name: addorupdateteammembershipforuser description: GitHub Add or Update Team Membership for User call: teams-add.addorupdateteammembershipforuser with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/projects/{project-id} name: orgs-org-teams-team-slug-projects-project-id description: REST surface for orgs-org-teams-team_slug-projects-project_id. operations: - method: PUT name: addorupdateteamprojectpermissions description: GitHub Add or Update Team Project Permissions call: teams-add.addorupdateteamprojectpermissions with: body: rest.body 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: PUT name: addorupdateteamrepositorypermissions description: GitHub Add or Update Team Repository Permissions call: teams-add.addorupdateteamrepositorypermissions with: body: rest.body 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: POST name: addteamaccessrestrictions description: GitHub Add Team Access Restrictions call: teams-add.addteamaccessrestrictions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/members/{username} name: teams-team-id-members-username description: REST surface for teams-team_id-members-username. operations: - method: PUT name: addteammemberlegacy description: GitHub Add Team Member (legacy) call: teams-add.addteammemberlegacy outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/memberships/{username} name: teams-team-id-memberships-username description: REST surface for teams-team_id-memberships-username. operations: - method: PUT name: addorupdateteammembershipforuserlegacy description: GitHub Add or Update Team Membership for User (legacy) call: teams-add.addorupdateteammembershipforuserlegacy with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/projects/{project-id} name: teams-team-id-projects-project-id description: REST surface for teams-team_id-projects-project_id. operations: - method: PUT name: addorupdateteamprojectpermissionslegacy description: GitHub Add or Update Team Project Permissions (legacy) call: teams-add.addorupdateteamprojectpermissionslegacy with: body: rest.body 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: PUT name: addorupdateteamrepositorypermissionslegacy description: GitHub Add or Update Team Repository Permissions (legacy) call: teams-add.addorupdateteamrepositorypermissionslegacy with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: teams-add-mcp port: 9090 transport: http description: MCP adapter for GitHub Teams API — Add. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-add-security-manager-team description: GitHub Add Security Manager Team hints: readOnly: false destructive: false idempotent: true call: teams-add.addsecuritymanagerteam outputParameters: - type: object mapping: $. - name: github-add-update-team-membership description: GitHub Add or Update Team Membership for User hints: readOnly: false destructive: false idempotent: true call: teams-add.addorupdateteammembershipforuser with: body: tools.body outputParameters: - type: object mapping: $. - name: github-add-update-team-project description: GitHub Add or Update Team Project Permissions hints: readOnly: false destructive: false idempotent: true call: teams-add.addorupdateteamprojectpermissions with: body: tools.body 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-add.addorupdateteamrepositorypermissions with: body: tools.body outputParameters: - type: object mapping: $. - name: github-add-team-access-restrictions description: GitHub Add Team Access Restrictions hints: readOnly: false destructive: false idempotent: false call: teams-add.addteamaccessrestrictions with: body: tools.body outputParameters: - type: object mapping: $. - name: github-add-team-member-legacy description: GitHub Add Team Member (legacy) hints: readOnly: false destructive: false idempotent: true call: teams-add.addteammemberlegacy outputParameters: - type: object mapping: $. - name: github-add-update-team-membership-2 description: GitHub Add or Update Team Membership for User (legacy) hints: readOnly: false destructive: false idempotent: true call: teams-add.addorupdateteammembershipforuserlegacy with: body: tools.body outputParameters: - type: object mapping: $. - name: github-add-update-team-project-2 description: GitHub Add or Update Team Project Permissions (legacy) hints: readOnly: false destructive: false idempotent: true call: teams-add.addorupdateteamprojectpermissionslegacy with: body: tools.body 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-add.addorupdateteamrepositorypermissionslegacy with: body: tools.body outputParameters: - type: object mapping: $.