naftiko: 1.0.0-alpha2 info: label: GitHub Projects API — Legacy description: 'GitHub Projects API — Legacy. 4 operations. Lead operation: GitHub List Team Projects (legacy). Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Legacy created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: projects-legacy baseUri: '' description: GitHub Projects API — Legacy business capability. Self-contained, no shared references. resources: - name: teams-team_id-projects path: /teams/{team_id}/projects operations: - name: listteamprojectslegacy method: GET description: GitHub List Team Projects (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-projects-project_id path: /teams/{team_id}/projects/{project_id} operations: - name: checkteampermissionsforprojectlegacy method: GET description: GitHub Check Team Permissions for Project (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. - 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: removeprojectfromteamlegacy method: DELETE description: GitHub Remove Project from Team (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: projects-legacy-rest port: 8080 description: REST adapter for GitHub Projects API — Legacy. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/teams/{team-id}/projects name: teams-team-id-projects description: REST surface for teams-team_id-projects. operations: - method: GET name: listteamprojectslegacy description: GitHub List Team Projects (legacy) call: projects-legacy.listteamprojectslegacy 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: GET name: checkteampermissionsforprojectlegacy description: GitHub Check Team Permissions for Project (legacy) call: projects-legacy.checkteampermissionsforprojectlegacy outputParameters: - type: object mapping: $. - method: PUT name: addorupdateteamprojectpermissionslegacy description: GitHub Add or Update Team Project Permissions (legacy) call: projects-legacy.addorupdateteamprojectpermissionslegacy with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removeprojectfromteamlegacy description: GitHub Remove Project from Team (legacy) call: projects-legacy.removeprojectfromteamlegacy outputParameters: - type: object mapping: $. - type: mcp namespace: projects-legacy-mcp port: 9090 transport: http description: MCP adapter for GitHub Projects API — Legacy. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-team-projects-legacy description: GitHub List Team Projects (legacy) hints: readOnly: true destructive: false idempotent: true call: projects-legacy.listteamprojectslegacy outputParameters: - type: object mapping: $. - name: github-check-team-permissions-project description: GitHub Check Team Permissions for Project (legacy) hints: readOnly: true destructive: false idempotent: true call: projects-legacy.checkteampermissionsforprojectlegacy outputParameters: - type: object mapping: $. - name: github-add-update-team-project description: GitHub Add or Update Team Project Permissions (legacy) hints: readOnly: false destructive: false idempotent: true call: projects-legacy.addorupdateteamprojectpermissionslegacy with: body: tools.body outputParameters: - type: object mapping: $. - name: github-remove-project-team-legacy description: GitHub Remove Project from Team (legacy) hints: readOnly: false destructive: true idempotent: true call: projects-legacy.removeprojectfromteamlegacy outputParameters: - type: object mapping: $.