naftiko: 1.0.0-alpha2 info: label: GitHub Projects API — Add description: 'GitHub Projects API — Add. 3 operations. Lead operation: GitHub Add or Update Team Project Permissions. 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: projects-add baseUri: '' description: GitHub Projects API — Add business capability. Self-contained, no shared references. resources: - 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: projects-project_id-collaborators-username path: /projects/{project_id}/collaborators/{username} operations: - name: addprojectcollaborator method: PUT description: GitHub Add Project Collaborator 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: projects-add-rest port: 8080 description: REST adapter for GitHub Projects API — Add. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - 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: projects-add.addorupdateteamprojectpermissions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{project-id}/collaborators/{username} name: projects-project-id-collaborators-username description: REST surface for projects-project_id-collaborators-username. operations: - method: PUT name: addprojectcollaborator description: GitHub Add Project Collaborator call: projects-add.addprojectcollaborator 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: projects-add.addorupdateteamprojectpermissionslegacy with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: projects-add-mcp port: 9090 transport: http description: MCP adapter for GitHub Projects API — Add. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-add-update-team-project description: GitHub Add or Update Team Project Permissions hints: readOnly: false destructive: false idempotent: true call: projects-add.addorupdateteamprojectpermissions with: body: tools.body outputParameters: - type: object mapping: $. - name: github-add-project-collaborator description: GitHub Add Project Collaborator hints: readOnly: false destructive: false idempotent: true call: projects-add.addprojectcollaborator 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: projects-add.addorupdateteamprojectpermissionslegacy with: body: tools.body outputParameters: - type: object mapping: $.