naftiko: 1.0.0-alpha2 info: label: GitHub Teams API — Reactions description: 'GitHub Teams API — Reactions. 10 operations. Lead operation: GitHub List Reactions for Team Discussion Comment. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Reactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: teams-reactions baseUri: '' description: GitHub Teams API — Reactions business capability. Self-contained, no shared references. resources: - name: orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number-r path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions operations: - name: listreactionsforteamdiscussioncomment method: GET description: GitHub List Reactions for Team Discussion 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: createreactionforteamdiscussioncomment method: POST description: GitHub Create Reaction for Team Discussion Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number-r path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id} operations: - name: deleteteamdiscussioncommentreaction method: DELETE description: GitHub Delete Team Discussion Comment Reaction outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-teams-team_slug-discussions-discussion_number-reactions path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions operations: - name: listreactionsforteamdiscussion method: GET description: GitHub List Reactions for Team Discussion 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: createreactionforteamdiscussion method: POST description: GitHub Create Reaction for Team Discussion outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org-teams-team_slug-discussions-discussion_number-reactions-reaction_id path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id} operations: - name: deleteteamdiscussionreaction method: DELETE description: GitHub Delete Team Discussion Reaction outputRawFormat: json outputParameters: - name: result type: object value: $. - name: teams-team_id-discussions-discussion_number-comments-comment_number-reactions path: /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions operations: - name: listreactionsforteamdiscussioncommentlegacy method: GET description: GitHub List Reactions for Team Discussion Comment (legacy) 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: createreactionforteamdiscussioncommentlegacy method: POST description: GitHub Create Reaction for Team Discussion Comment (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: teams-team_id-discussions-discussion_number-reactions path: /teams/{team_id}/discussions/{discussion_number}/reactions operations: - name: listreactionsforteamdiscussionlegacy method: GET description: GitHub List Reactions for Team Discussion (legacy) 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: createreactionforteamdiscussionlegacy method: POST description: GitHub Create Reaction for Team Discussion (legacy) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: teams-reactions-rest port: 8080 description: REST adapter for GitHub Teams API — Reactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}/reactions name: orgs-org-teams-team-slug-discussions-discussion-number-comments-comment-number-r description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number-r. operations: - method: GET name: listreactionsforteamdiscussioncomment description: GitHub List Reactions for Team Discussion Comment call: teams-reactions.listreactionsforteamdiscussioncomment with: content: rest.content outputParameters: - type: object mapping: $. - method: POST name: createreactionforteamdiscussioncomment description: GitHub Create Reaction for Team Discussion Comment call: teams-reactions.createreactionforteamdiscussioncomment with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}/reactions/{reaction-id} name: orgs-org-teams-team-slug-discussions-discussion-number-comments-comment-number-r description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number-r. operations: - method: DELETE name: deleteteamdiscussioncommentreaction description: GitHub Delete Team Discussion Comment Reaction call: teams-reactions.deleteteamdiscussioncommentreaction outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/reactions name: orgs-org-teams-team-slug-discussions-discussion-number-reactions description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-reactions. operations: - method: GET name: listreactionsforteamdiscussion description: GitHub List Reactions for Team Discussion call: teams-reactions.listreactionsforteamdiscussion with: content: rest.content outputParameters: - type: object mapping: $. - method: POST name: createreactionforteamdiscussion description: GitHub Create Reaction for Team Discussion call: teams-reactions.createreactionforteamdiscussion with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/reactions/{reaction-id} name: orgs-org-teams-team-slug-discussions-discussion-number-reactions-reaction-id description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-reactions-reaction_id. operations: - method: DELETE name: deleteteamdiscussionreaction description: GitHub Delete Team Discussion Reaction call: teams-reactions.deleteteamdiscussionreaction outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}/reactions name: teams-team-id-discussions-discussion-number-comments-comment-number-reactions description: REST surface for teams-team_id-discussions-discussion_number-comments-comment_number-reactions. operations: - method: GET name: listreactionsforteamdiscussioncommentlegacy description: GitHub List Reactions for Team Discussion Comment (legacy) call: teams-reactions.listreactionsforteamdiscussioncommentlegacy with: content: rest.content outputParameters: - type: object mapping: $. - method: POST name: createreactionforteamdiscussioncommentlegacy description: GitHub Create Reaction for Team Discussion Comment (legacy) call: teams-reactions.createreactionforteamdiscussioncommentlegacy with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/discussions/{discussion-number}/reactions name: teams-team-id-discussions-discussion-number-reactions description: REST surface for teams-team_id-discussions-discussion_number-reactions. operations: - method: GET name: listreactionsforteamdiscussionlegacy description: GitHub List Reactions for Team Discussion (legacy) call: teams-reactions.listreactionsforteamdiscussionlegacy with: content: rest.content outputParameters: - type: object mapping: $. - method: POST name: createreactionforteamdiscussionlegacy description: GitHub Create Reaction for Team Discussion (legacy) call: teams-reactions.createreactionforteamdiscussionlegacy with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: teams-reactions-mcp port: 9090 transport: http description: MCP adapter for GitHub Teams API — Reactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-reactions-team-discussion description: GitHub List Reactions for Team Discussion Comment hints: readOnly: true destructive: false idempotent: true call: teams-reactions.listreactionsforteamdiscussioncomment with: content: tools.content outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion description: GitHub Create Reaction for Team Discussion Comment hints: readOnly: false destructive: false idempotent: false call: teams-reactions.createreactionforteamdiscussioncomment with: body: tools.body outputParameters: - type: object mapping: $. - name: github-delete-team-discussion-comment description: GitHub Delete Team Discussion Comment Reaction hints: readOnly: false destructive: true idempotent: true call: teams-reactions.deleteteamdiscussioncommentreaction outputParameters: - type: object mapping: $. - name: github-list-reactions-team-discussion-2 description: GitHub List Reactions for Team Discussion hints: readOnly: true destructive: false idempotent: true call: teams-reactions.listreactionsforteamdiscussion with: content: tools.content outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion-2 description: GitHub Create Reaction for Team Discussion hints: readOnly: false destructive: false idempotent: false call: teams-reactions.createreactionforteamdiscussion with: body: tools.body outputParameters: - type: object mapping: $. - name: github-delete-team-discussion-reaction description: GitHub Delete Team Discussion Reaction hints: readOnly: false destructive: true idempotent: true call: teams-reactions.deleteteamdiscussionreaction outputParameters: - type: object mapping: $. - name: github-list-reactions-team-discussion-3 description: GitHub List Reactions for Team Discussion Comment (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-reactions.listreactionsforteamdiscussioncommentlegacy with: content: tools.content outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion-3 description: GitHub Create Reaction for Team Discussion Comment (legacy) hints: readOnly: false destructive: false idempotent: false call: teams-reactions.createreactionforteamdiscussioncommentlegacy with: body: tools.body outputParameters: - type: object mapping: $. - name: github-list-reactions-team-discussion-4 description: GitHub List Reactions for Team Discussion (legacy) hints: readOnly: true destructive: false idempotent: true call: teams-reactions.listreactionsforteamdiscussionlegacy with: content: tools.content outputParameters: - type: object mapping: $. - name: github-create-reaction-team-discussion-4 description: GitHub Create Reaction for Team Discussion (legacy) hints: readOnly: false destructive: false idempotent: false call: teams-reactions.createreactionforteamdiscussionlegacy with: body: tools.body outputParameters: - type: object mapping: $.