naftiko: 1.0.0-alpha2 info: label: GitHub Issues API — Comments description: 'GitHub Issues API — Comments. 8 operations. Lead operation: GitHub List Issue Comments for Repository. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Comments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: issues-comments baseUri: '' description: GitHub Issues API — Comments business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-issues-comments path: /repos/{owner}/{repo}/issues/comments operations: - name: listissuecommentsforrepository method: GET description: GitHub List Issue Comments for Repository outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: direction in: query type: string description: Either `asc` or `desc`. Ignored without the `sort` parameter. - 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-issues-comments-comment_id path: /repos/{owner}/{repo}/issues/comments/{comment_id} operations: - name: getanissuecomment method: GET description: GitHub Get an Issue Comment 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: deleteanissuecomment method: DELETE description: GitHub Delete an Issue Comment 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: repos-owner-repo-issues-comments-comment_id-reactions path: /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions operations: - name: listreactionsforanissuecomment method: GET description: GitHub List Reactions for an Issue Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: content in: query type: string description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.9/rest/reactions/reactions#about-reactions). Omit this parameter to list all reacti - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: createreactionforanissuecomment method: POST description: GitHub Create Reaction for an Issue Comment 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-issues-comments-comment_id-reactions-reaction_id path: /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id} operations: - name: deleteanissuecommentreaction method: DELETE description: GitHub Delete an Issue Comment Reaction 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: repos-owner-repo-issues-issue_number-comments path: /repos/{owner}/{repo}/issues/{issue_number}/comments operations: - name: listissuecomments method: GET description: GitHub List Issue Comments 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: createanissuecomment method: POST description: GitHub Create an Issue Comment 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: issues-comments-rest port: 8080 description: REST adapter for GitHub Issues API — Comments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/issues/comments name: repos-owner-repo-issues-comments description: REST surface for repos-owner-repo-issues-comments. operations: - method: GET name: listissuecommentsforrepository description: GitHub List Issue Comments for Repository call: issues-comments.listissuecommentsforrepository with: direction: rest.direction Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/issues/comments/{comment-id} name: repos-owner-repo-issues-comments-comment-id description: REST surface for repos-owner-repo-issues-comments-comment_id. operations: - method: GET name: getanissuecomment description: GitHub Get an Issue Comment call: issues-comments.getanissuecomment with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: DELETE name: deleteanissuecomment description: GitHub Delete an Issue Comment call: issues-comments.deleteanissuecomment with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/issues/comments/{comment-id}/reactions name: repos-owner-repo-issues-comments-comment-id-reactions description: REST surface for repos-owner-repo-issues-comments-comment_id-reactions. operations: - method: GET name: listreactionsforanissuecomment description: GitHub List Reactions for an Issue Comment call: issues-comments.listreactionsforanissuecomment with: content: rest.content Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: createreactionforanissuecomment description: GitHub Create Reaction for an Issue Comment call: issues-comments.createreactionforanissuecomment 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}/issues/comments/{comment-id}/reactions/{reaction-id} name: repos-owner-repo-issues-comments-comment-id-reactions-reaction-id description: REST surface for repos-owner-repo-issues-comments-comment_id-reactions-reaction_id. operations: - method: DELETE name: deleteanissuecommentreaction description: GitHub Delete an Issue Comment Reaction call: issues-comments.deleteanissuecommentreaction with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/repos/{owner}/{repo}/issues/{issue-number}/comments name: repos-owner-repo-issues-issue-number-comments description: REST surface for repos-owner-repo-issues-issue_number-comments. operations: - method: GET name: listissuecomments description: GitHub List Issue Comments call: issues-comments.listissuecomments with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: createanissuecomment description: GitHub Create an Issue Comment call: issues-comments.createanissuecomment with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: issues-comments-mcp port: 9090 transport: http description: MCP adapter for GitHub Issues API — Comments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-issue-comments-repository description: GitHub List Issue Comments for Repository hints: readOnly: true destructive: false idempotent: true call: issues-comments.listissuecommentsforrepository with: direction: tools.direction Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-issue-comment description: GitHub Get an Issue Comment hints: readOnly: true destructive: false idempotent: true call: issues-comments.getanissuecomment with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-issue-comment description: GitHub Delete an Issue Comment hints: readOnly: false destructive: true idempotent: true call: issues-comments.deleteanissuecomment with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-reactions-issue-comment description: GitHub List Reactions for an Issue Comment hints: readOnly: true destructive: false idempotent: true call: issues-comments.listreactionsforanissuecomment with: content: tools.content Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-create-reaction-issue-comment description: GitHub Create Reaction for an Issue Comment hints: readOnly: false destructive: false idempotent: false call: issues-comments.createreactionforanissuecomment 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-delete-issue-comment-reaction description: GitHub Delete an Issue Comment Reaction hints: readOnly: false destructive: true idempotent: true call: issues-comments.deleteanissuecommentreaction with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-issue-comments description: GitHub List Issue Comments hints: readOnly: true destructive: false idempotent: true call: issues-comments.listissuecomments with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-create-issue-comment description: GitHub Create an Issue Comment hints: readOnly: false destructive: false idempotent: false call: issues-comments.createanissuecomment with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $.