Merge · Capability

Merge Ticketing API — Comments

Merge Ticketing API — Comments. 2 operations. Lead operation: Merge List Comments. Self-contained Naftiko capability covering one Merge business surface.

Run with Naftiko MergeComments

What You Can Do

GET
Listcomments — Merge List Comments
/v1/comments
POST
Createcomment — Merge Create Comment
/v1/comments

MCP Tools

merge-list-comments

Merge List Comments

read-only idempotent
merge-create-comment

Merge Create Comment

Capability Spec

ticketing-comments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Merge Ticketing API — Comments
  description: 'Merge Ticketing API — Comments. 2 operations. Lead operation: Merge List Comments. Self-contained Naftiko
    capability covering one Merge business surface.'
  tags:
  - Merge
  - Comments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MERGE_API_KEY: MERGE_API_KEY
capability:
  consumes:
  - type: http
    namespace: ticketing-comments
    baseUri: https://api.merge.dev/api/ticketing/v1
    description: Merge Ticketing API — Comments business capability. Self-contained, no shared references.
    resources:
    - name: comments
      path: /comments
      operations:
      - name: listcomments
        method: GET
        description: Merge List Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ticket_id
          in: query
          type: string
          description: Filter by ticket ID.
      - name: createcomment
        method: POST
        description: Merge Create Comment
        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.MERGE_API_KEY}}'
  exposes:
  - type: rest
    namespace: ticketing-comments-rest
    port: 8080
    description: REST adapter for Merge Ticketing API — Comments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/comments
      name: comments
      description: REST surface for comments.
      operations:
      - method: GET
        name: listcomments
        description: Merge List Comments
        call: ticketing-comments.listcomments
        with:
          ticket_id: rest.ticket_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcomment
        description: Merge Create Comment
        call: ticketing-comments.createcomment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ticketing-comments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Merge Ticketing API — Comments. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: merge-list-comments
      description: Merge List Comments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ticketing-comments.listcomments
      with:
        ticket_id: tools.ticket_id
      outputParameters:
      - type: object
        mapping: $.
    - name: merge-create-comment
      description: Merge Create Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ticketing-comments.createcomment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.