GitHub · Capability

github-repos-api — Comment

github-repos-api — Comment. 8 operations. Lead operation: GitHub Get Review Comment for Pull Request. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubComment

What You Can Do

GET
Getreviewcommentforpullrequest — GitHub Get Review Comment for Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
PATCH
Updatereviewcommentforpullrequest — GitHub Update Review Comment for Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
DELETE
Deletereviewcommentforpullrequest — GitHub Delete Review Comment for Pull Request
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
GET
Listreactionsforpullrequestreviewcomment — GitHub List Reactions for Pull Request Review Comment
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions
POST
Createreactionforpullrequestreviewcomment — GitHub Create Reaction for Pull Request Review Comment
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions
DELETE
Deletepullrequestcommentreaction — GitHub Delete Pull Request Comment Reaction
/v1/repos/{owner}/{repo}/pulls/comments/{comment-id}/reactions/{reaction-id}
POST
Createreviewcommentforpullrequest — GitHub Create Review Comment for Pull Request
/v1/repos/{owner}/{repo}/pulls/{pull-number}/comments
POST
Createreplyforreviewcomment — GitHub Create Reply for Review Comment
/v1/repos/{owner}/{repo}/pulls/{pull-number}/comments/{comment-id}/replies

MCP Tools

github-get-review-comment-pull

GitHub Get Review Comment for Pull Request

read-only idempotent
github-update-review-comment-pull

GitHub Update Review Comment for Pull Request

idempotent
github-delete-review-comment-pull

GitHub Delete Review Comment for Pull Request

idempotent
github-list-reactions-pull-request

GitHub List Reactions for Pull Request Review Comment

read-only idempotent
github-create-reaction-pull-request

GitHub Create Reaction for Pull Request Review Comment

github-delete-pull-request-comment

GitHub Delete Pull Request Comment Reaction

idempotent
github-create-review-comment-pull

GitHub Create Review Comment for Pull Request

github-create-reply-review-comment

GitHub Create Reply for Review Comment

Capability Spec

repo-pulls-comment.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Comment
  description: 'github-repos-api — Comment. 8 operations. Lead operation: GitHub Get Review Comment for Pull Request. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Comment
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-pulls-comment
    baseUri: ''
    description: github-repos-api — Comment business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-pulls-comments-comment_id
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}
      operations:
      - name: getreviewcommentforpullrequest
        method: GET
        description: GitHub Get Review Comment for Pull Request
        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: updatereviewcommentforpullrequest
        method: PATCH
        description: GitHub Update Review Comment for Pull Request
        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: deletereviewcommentforpullrequest
        method: DELETE
        description: GitHub Delete Review Comment for Pull Request
        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-pulls-comments-comment_id-reactions
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions
      operations:
      - name: listreactionsforpullrequestreviewcomment
        method: GET
        description: GitHub List Reactions for Pull Request Review 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: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: createreactionforpullrequestreviewcomment
        method: POST
        description: GitHub Create Reaction for Pull Request Review 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-pulls-comments-comment_id-reactions-reaction_id
      path: /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}
      operations:
      - name: deletepullrequestcommentreaction
        method: DELETE
        description: GitHub Delete Pull Request 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-pulls-pull_number-comments
      path: /repos/{owner}/{repo}/pulls/{pull_number}/comments
      operations:
      - name: createreviewcommentforpullrequest
        method: POST
        description: GitHub Create Review Comment for Pull Request
        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-pulls-pull_number-comments-comment_id-replies
      path: /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies
      operations:
      - name: createreplyforreviewcomment
        method: POST
        description: GitHub Create Reply for Review 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: repo-pulls-comment-rest
    port: 8080
    description: REST adapter for github-repos-api — Comment. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/pulls/comments/{comment-id}
      name: repos-owner-repo-pulls-comments-comment-id
      description: REST surface for repos-owner-repo-pulls-comments-comment_id.
      operations:
      - method: GET
        name: getreviewcommentforpullrequest
        description: GitHub Get Review Comment for Pull Request
        call: repo-pulls-comment.getreviewcommentforpullrequest
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatereviewcommentforpullrequest
        description: GitHub Update Review Comment for Pull Request
        call: repo-pulls-comment.updatereviewcommentforpullrequest
        with:
          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: deletereviewcommentforpullrequest
        description: GitHub Delete Review Comment for Pull Request
        call: repo-pulls-comment.deletereviewcommentforpullrequest
        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}/pulls/comments/{comment-id}/reactions
      name: repos-owner-repo-pulls-comments-comment-id-reactions
      description: REST surface for repos-owner-repo-pulls-comments-comment_id-reactions.
      operations:
      - method: GET
        name: listreactionsforpullrequestreviewcomment
        description: GitHub List Reactions for Pull Request Review Comment
        call: repo-pulls-comment.listreactionsforpullrequestreviewcomment
        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: createreactionforpullrequestreviewcomment
        description: GitHub Create Reaction for Pull Request Review Comment
        call: repo-pulls-comment.createreactionforpullrequestreviewcomment
        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}/pulls/comments/{comment-id}/reactions/{reaction-id}
      name: repos-owner-repo-pulls-comments-comment-id-reactions-reaction-id
      description: REST surface for repos-owner-repo-pulls-comments-comment_id-reactions-reaction_id.
      operations:
      - method: DELETE
        name: deletepullrequestcommentreaction
        description: GitHub Delete Pull Request Comment Reaction
        call: repo-pulls-comment.deletepullrequestcommentreaction
        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}/pulls/{pull-number}/comments
      name: repos-owner-repo-pulls-pull-number-comments
      description: REST surface for repos-owner-repo-pulls-pull_number-comments.
      operations:
      - method: POST
        name: createreviewcommentforpullrequest
        description: GitHub Create Review Comment for Pull Request
        call: repo-pulls-comment.createreviewcommentforpullrequest
        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}/pulls/{pull-number}/comments/{comment-id}/replies
      name: repos-owner-repo-pulls-pull-number-comments-comment-id-replies
      description: REST surface for repos-owner-repo-pulls-pull_number-comments-comment_id-replies.
      operations:
      - method: POST
        name: createreplyforreviewcomment
        description: GitHub Create Reply for Review Comment
        call: repo-pulls-comment.createreplyforreviewcomment
        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: repo-pulls-comment-mcp
    port: 9090
    transport: http
    description: MCP adapter for github-repos-api — Comment. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-review-comment-pull
      description: GitHub Get Review Comment for Pull Request
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-pulls-comment.getreviewcommentforpullrequest
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-review-comment-pull
      description: GitHub Update Review Comment for Pull Request
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-pulls-comment.updatereviewcommentforpullrequest
      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-review-comment-pull
      description: GitHub Delete Review Comment for Pull Request
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-pulls-comment.deletereviewcommentforpullrequest
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-reactions-pull-request
      description: GitHub List Reactions for Pull Request Review Comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-pulls-comment.listreactionsforpullrequestreviewcomment
      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-pull-request
      description: GitHub Create Reaction for Pull Request Review Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-pulls-comment.createreactionforpullrequestreviewcomment
      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-pull-request-comment
      description: GitHub Delete Pull Request Comment Reaction
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-pulls-comment.deletepullrequestcommentreaction
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-review-comment-pull
      description: GitHub Create Review Comment for Pull Request
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-pulls-comment.createreviewcommentforpullrequest
      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-create-reply-review-comment
      description: GitHub Create Reply for Review Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: repo-pulls-comment.createreplyforreviewcomment
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.