naftiko: 1.0.0-alpha2 info: label: github-repos-api — Labels description: 'github-repos-api — Labels. 6 operations. Lead operation: GitHub List Labels for Repository. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Labels created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: repos-labels baseUri: http://localhost:8080/rest/github-repos-api/1.1.4 description: github-repos-api — Labels business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-labels path: /repos/{owner}/{repo}/labels operations: - name: listlabelsforrepository method: GET description: GitHub List Labels 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: createlabel method: POST description: GitHub Create Label 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: true - name: repos-owner-repo-labels-name path: /repos/{owner}/{repo}/labels/{name} operations: - name: getlabel method: GET description: GitHub Get Label outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: updatelabel method: PATCH description: GitHub Update Label outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true - 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: deletelabel method: DELETE description: GitHub Delete Label outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true - 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-milestones-milestone_number-labels path: /repos/{owner}/{repo}/milestones/{milestone_number}/labels operations: - name: listlabelsforissuesinmilestone method: GET description: GitHub List Labels for Issues in Milestone 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: repos-labels-rest port: 8080 description: REST adapter for github-repos-api — Labels. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/labels name: repos-owner-repo-labels description: REST surface for repos-owner-repo-labels. operations: - method: GET name: listlabelsforrepository description: GitHub List Labels for Repository call: repos-labels.listlabelsforrepository with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: createlabel description: GitHub Create Label call: repos-labels.createlabel 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}/labels/{name} name: repos-owner-repo-labels-name description: REST surface for repos-owner-repo-labels-name. operations: - method: GET name: getlabel description: GitHub Get Label call: repos-labels.getlabel with: name: rest.name Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: PATCH name: updatelabel description: GitHub Update Label call: repos-labels.updatelabel with: name: rest.name 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: deletelabel description: GitHub Delete Label call: repos-labels.deletelabel with: name: rest.name Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/milestones/{milestone-number}/labels name: repos-owner-repo-milestones-milestone-number-labels description: REST surface for repos-owner-repo-milestones-milestone_number-labels. operations: - method: GET name: listlabelsforissuesinmilestone description: GitHub List Labels for Issues in Milestone call: repos-labels.listlabelsforissuesinmilestone with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: repos-labels-mcp port: 9090 transport: http description: MCP adapter for github-repos-api — Labels. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-labels-repository description: GitHub List Labels for Repository hints: readOnly: true destructive: false idempotent: true call: repos-labels.listlabelsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-create-label description: GitHub Create Label hints: readOnly: false destructive: false idempotent: false call: repos-labels.createlabel with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-get-label description: GitHub Get Label hints: readOnly: true destructive: false idempotent: true call: repos-labels.getlabel with: name: tools.name Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-update-label description: GitHub Update Label hints: readOnly: false destructive: false idempotent: true call: repos-labels.updatelabel with: name: tools.name Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-delete-label description: GitHub Delete Label hints: readOnly: false destructive: true idempotent: true call: repos-labels.deletelabel with: name: tools.name Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-labels-issues-milestone description: GitHub List Labels for Issues in Milestone hints: readOnly: true destructive: false idempotent: true call: repos-labels.listlabelsforissuesinmilestone with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.