GitHub · Capability

GitHub Gists API — Comment

GitHub Gists API — Comment. 4 operations. Lead operation: GitHub Creategist Comment. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubComment

What You Can Do

POST
Creategistcomment — GitHub Creategist Comment
/v1/gists/{gist-id}/comments
GET
Getgistcomment — GitHub Getgist Comment
/v1/gists/{gist-id}/comments/{comment-id}
PATCH
Updategistcomment — GitHub Updategist Comment
/v1/gists/{gist-id}/comments/{comment-id}
DELETE
Deletegistcomment — GitHub Deletegist Comment
/v1/gists/{gist-id}/comments/{comment-id}

MCP Tools

github-creategist-comment

GitHub Creategist Comment

github-getgist-comment

GitHub Getgist Comment

read-only idempotent
github-updategist-comment

GitHub Updategist Comment

idempotent
github-deletegist-comment

GitHub Deletegist Comment

idempotent

Capability Spec

gists-comment.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Gists API — Comment
  description: 'GitHub Gists API — Comment. 4 operations. Lead operation: GitHub Creategist Comment. 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: gists-comment
    baseUri: ''
    description: GitHub Gists API — Comment business capability. Self-contained, no shared references.
    resources:
    - name: gists-gist_id-comments
      path: /gists/{gist_id}/comments
      operations:
      - name: creategistcomment
        method: POST
        description: GitHub Creategist Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: gists-gist_id-comments-comment_id
      path: /gists/{gist_id}/comments/{comment_id}
      operations:
      - name: getgistcomment
        method: GET
        description: GitHub Getgist Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updategistcomment
        method: PATCH
        description: GitHub Updategist Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletegistcomment
        method: DELETE
        description: GitHub Deletegist Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: gists-comment-rest
    port: 8080
    description: REST adapter for GitHub Gists API — Comment. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gists/{gist-id}/comments
      name: gists-gist-id-comments
      description: REST surface for gists-gist_id-comments.
      operations:
      - method: POST
        name: creategistcomment
        description: GitHub Creategist Comment
        call: gists-comment.creategistcomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gists/{gist-id}/comments/{comment-id}
      name: gists-gist-id-comments-comment-id
      description: REST surface for gists-gist_id-comments-comment_id.
      operations:
      - method: GET
        name: getgistcomment
        description: GitHub Getgist Comment
        call: gists-comment.getgistcomment
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updategistcomment
        description: GitHub Updategist Comment
        call: gists-comment.updategistcomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletegistcomment
        description: GitHub Deletegist Comment
        call: gists-comment.deletegistcomment
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gists-comment-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Gists API — Comment. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-creategist-comment
      description: GitHub Creategist Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gists-comment.creategistcomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-getgist-comment
      description: GitHub Getgist Comment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: gists-comment.getgistcomment
      outputParameters:
      - type: object
        mapping: $.
    - name: github-updategist-comment
      description: GitHub Updategist Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gists-comment.updategistcomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-deletegist-comment
      description: GitHub Deletegist Comment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: gists-comment.deletegistcomment
      outputParameters:
      - type: object
        mapping: $.