GitHub · Capability

GitHub Teams API — Comments

GitHub Teams API — Comments. 15 operations. Lead operation: GitHub List Discussion Comments. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubComments

What You Can Do

GET
Listdiscussioncomments — GitHub List Discussion Comments
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments
POST
Creatediscussioncomment — GitHub Create Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments
GET
Getdiscussioncomment — GitHub Get Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
PATCH
Updatediscussioncomment — GitHub Update Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
DELETE
Deletediscussioncomment — GitHub Delete Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
GET
Listreactionsforteamdiscussioncomment — GitHub List Reactions for Team Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}/reactions
POST
Createreactionforteamdiscussioncomment — GitHub Create Reaction for Team Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}/reactions
DELETE
Deleteteamdiscussioncommentreaction — GitHub Delete Team Discussion Comment Reaction
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}/reactions/{reaction-id}
GET
Listdiscussioncommentslegacy — GitHub List Discussion Comments (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments
POST
Creatediscussioncommentlegacy — GitHub Create Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments
GET
Getdiscussioncommentlegacy — GitHub Get Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
PATCH
Updatediscussioncommentlegacy — GitHub Update Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
DELETE
Deletediscussioncommentlegacy — GitHub Delete Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
GET
Listreactionsforteamdiscussioncommentlegacy — GitHub List Reactions for Team Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}/reactions
POST
Createreactionforteamdiscussioncommentlegacy — GitHub Create Reaction for Team Discussion Comment (legacy)
/v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}/reactions

MCP Tools

github-list-discussion-comments

GitHub List Discussion Comments

read-only idempotent
github-create-discussion-comment

GitHub Create Discussion Comment

github-get-discussion-comment

GitHub Get Discussion Comment

read-only idempotent
github-update-discussion-comment

GitHub Update Discussion Comment

idempotent
github-delete-discussion-comment

GitHub Delete Discussion Comment

idempotent
github-list-reactions-team-discussion

GitHub List Reactions for Team Discussion Comment

read-only idempotent
github-create-reaction-team-discussion

GitHub Create Reaction for Team Discussion Comment

github-delete-team-discussion-comment

GitHub Delete Team Discussion Comment Reaction

idempotent
github-list-discussion-comments-legacy

GitHub List Discussion Comments (legacy)

read-only idempotent
github-create-discussion-comment-legacy

GitHub Create Discussion Comment (legacy)

github-get-discussion-comment-legacy

GitHub Get Discussion Comment (legacy)

read-only idempotent
github-update-discussion-comment-legacy

GitHub Update Discussion Comment (legacy)

idempotent
github-delete-discussion-comment-legacy

GitHub Delete Discussion Comment (legacy)

idempotent
github-list-reactions-team-discussion-2

GitHub List Reactions for Team Discussion Comment (legacy)

read-only idempotent
github-create-reaction-team-discussion-2

GitHub Create Reaction for Team Discussion Comment (legacy)

Capability Spec

teams-comments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Teams API — Comments
  description: 'GitHub Teams API — Comments. 15 operations. Lead operation: GitHub List Discussion Comments. 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: teams-comments
    baseUri: ''
    description: GitHub Teams API — Comments business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-teams-team_slug-discussions-discussion_number-comments
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
      operations:
      - name: listdiscussioncomments
        method: GET
        description: GitHub List Discussion Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: creatediscussioncomment
        method: POST
        description: GitHub Create 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
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
      operations:
      - name: getdiscussioncomment
        method: GET
        description: GitHub Get Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatediscussioncomment
        method: PATCH
        description: GitHub Update Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletediscussioncomment
        method: DELETE
        description: GitHub Delete Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - 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/[email protected]/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: teams-team_id-discussions-discussion_number-comments
      path: /teams/{team_id}/discussions/{discussion_number}/comments
      operations:
      - name: listdiscussioncommentslegacy
        method: GET
        description: GitHub List Discussion Comments (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: creatediscussioncommentlegacy
        method: POST
        description: GitHub Create 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-comments-comment_number
      path: /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
      operations:
      - name: getdiscussioncommentlegacy
        method: GET
        description: GitHub Get Discussion Comment (legacy)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatediscussioncommentlegacy
        method: PATCH
        description: GitHub Update 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: deletediscussioncommentlegacy
        method: DELETE
        description: GitHub Delete Discussion Comment (legacy)
        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/[email protected]/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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: teams-comments-rest
    port: 8080
    description: REST adapter for GitHub Teams API — Comments. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments
      name: orgs-org-teams-team-slug-discussions-discussion-number-comments
      description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments.
      operations:
      - method: GET
        name: listdiscussioncomments
        description: GitHub List Discussion Comments
        call: teams-comments.listdiscussioncomments
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creatediscussioncomment
        description: GitHub Create Discussion Comment
        call: teams-comments.creatediscussioncomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}
      name: orgs-org-teams-team-slug-discussions-discussion-number-comments-comment-number
      description: REST surface for orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number.
      operations:
      - method: GET
        name: getdiscussioncomment
        description: GitHub Get Discussion Comment
        call: teams-comments.getdiscussioncomment
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatediscussioncomment
        description: GitHub Update Discussion Comment
        call: teams-comments.updatediscussioncomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletediscussioncomment
        description: GitHub Delete Discussion Comment
        call: teams-comments.deletediscussioncomment
        outputParameters:
        - type: object
          mapping: $.
    - 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-comments.listreactionsforteamdiscussioncomment
        with:
          content: rest.content
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreactionforteamdiscussioncomment
        description: GitHub Create Reaction for Team Discussion Comment
        call: teams-comments.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-comments.deleteteamdiscussioncommentreaction
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/discussions/{discussion-number}/comments
      name: teams-team-id-discussions-discussion-number-comments
      description: REST surface for teams-team_id-discussions-discussion_number-comments.
      operations:
      - method: GET
        name: listdiscussioncommentslegacy
        description: GitHub List Discussion Comments (legacy)
        call: teams-comments.listdiscussioncommentslegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creatediscussioncommentlegacy
        description: GitHub Create Discussion Comment (legacy)
        call: teams-comments.creatediscussioncommentlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/discussions/{discussion-number}/comments/{comment-number}
      name: teams-team-id-discussions-discussion-number-comments-comment-number
      description: REST surface for teams-team_id-discussions-discussion_number-comments-comment_number.
      operations:
      - method: GET
        name: getdiscussioncommentlegacy
        description: GitHub Get Discussion Comment (legacy)
        call: teams-comments.getdiscussioncommentlegacy
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatediscussioncommentlegacy
        description: GitHub Update Discussion Comment (legacy)
        call: teams-comments.updatediscussioncommentlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletediscussioncommentlegacy
        description: GitHub Delete Discussion Comment (legacy)
        call: teams-comments.deletediscussioncommentlegacy
        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-comments.listreactionsforteamdiscussioncommentlegacy
        with:
          content: rest.content
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createreactionforteamdiscussioncommentlegacy
        description: GitHub Create Reaction for Team Discussion Comment (legacy)
        call: teams-comments.createreactionforteamdiscussioncommentlegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: teams-comments-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Teams API — Comments. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: github-list-discussion-comments
      description: GitHub List Discussion Comments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-comments.listdiscussioncomments
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-discussion-comment
      description: GitHub Create Discussion Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: teams-comments.creatediscussioncomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-discussion-comment
      description: GitHub Get Discussion Comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-comments.getdiscussioncomment
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion-comment
      description: GitHub Update Discussion Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-comments.updatediscussioncomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-discussion-comment
      description: GitHub Delete Discussion Comment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: teams-comments.deletediscussioncomment
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-reactions-team-discussion
      description: GitHub List Reactions for Team Discussion Comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-comments.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-comments.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-comments.deleteteamdiscussioncommentreaction
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-discussion-comments-legacy
      description: GitHub List Discussion Comments (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-comments.listdiscussioncommentslegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-discussion-comment-legacy
      description: GitHub Create Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: teams-comments.creatediscussioncommentlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-discussion-comment-legacy
      description: GitHub Get Discussion Comment (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-comments.getdiscussioncommentlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-discussion-comment-legacy
      description: GitHub Update Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: teams-comments.updatediscussioncommentlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-discussion-comment-legacy
      description: GitHub Delete Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: teams-comments.deletediscussioncommentlegacy
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-reactions-team-discussion-2
      description: GitHub List Reactions for Team Discussion Comment (legacy)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: teams-comments.listreactionsforteamdiscussioncommentlegacy
      with:
        content: tools.content
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-reaction-team-discussion-2
      description: GitHub Create Reaction for Team Discussion Comment (legacy)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: teams-comments.createreactionforteamdiscussioncommentlegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.