Couchbase · Capability

Couchbase Sync Gateway Public REST API — Changes

Couchbase Sync Gateway Public REST API — Changes. 1 operations. Lead operation: Get changes feed. Self-contained Naftiko capability covering one Couchbase business surface.

Run with Naftiko CouchbaseChanges

What You Can Do

GET
Getchanges — Get changes feed
/v1/{db}/changes

MCP Tools

get-changes-feed

Get changes feed

read-only idempotent

Capability Spec

sync-gateway-public-rest-changes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Couchbase Sync Gateway Public REST API — Changes
  description: 'Couchbase Sync Gateway Public REST API — Changes. 1 operations. Lead operation: Get changes feed. Self-contained
    Naftiko capability covering one Couchbase business surface.'
  tags:
  - Couchbase
  - Changes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COUCHBASE_API_KEY: COUCHBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: sync-gateway-public-rest-changes
    baseUri: https://localhost:4984
    description: Couchbase Sync Gateway Public REST API — Changes business capability. Self-contained, no shared references.
    resources:
    - name: db-_changes
      path: /{db}/_changes
      operations:
      - name: getchanges
        method: GET
        description: Get changes feed
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: since
          in: query
          type: string
          description: Sequence number to start from
        - name: feed
          in: query
          type: string
          description: Type of changes feed
        - name: filter
          in: query
          type: string
          description: Filter function
        - name: channels
          in: query
          type: string
          description: Comma-separated list of channels to filter by
        - name: include_docs
          in: query
          type: boolean
          description: Whether to include document bodies
        - name: limit
          in: query
          type: integer
          description: Maximum number of changes to return
        - name: heartbeat
          in: query
          type: integer
          description: Heartbeat interval in milliseconds
        - name: timeout
          in: query
          type: integer
          description: Timeout for longpoll in milliseconds
        - name: style
          in: query
          type: string
          description: Whether to return all leaf revisions
        - name: active_only
          in: query
          type: boolean
          description: Whether to exclude deleted documents
    authentication:
      type: apikey
      key: SyncGatewaySession
      value: '{{env.COUCHBASE_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: sync-gateway-public-rest-changes-rest
    port: 8080
    description: REST adapter for Couchbase Sync Gateway Public REST API — Changes. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/{db}/changes
      name: db-changes
      description: REST surface for db-_changes.
      operations:
      - method: GET
        name: getchanges
        description: Get changes feed
        call: sync-gateway-public-rest-changes.getchanges
        with:
          since: rest.since
          feed: rest.feed
          filter: rest.filter
          channels: rest.channels
          include_docs: rest.include_docs
          limit: rest.limit
          heartbeat: rest.heartbeat
          timeout: rest.timeout
          style: rest.style
          active_only: rest.active_only
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: sync-gateway-public-rest-changes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Couchbase Sync Gateway Public REST API — Changes. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-changes-feed
      description: Get changes feed
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sync-gateway-public-rest-changes.getchanges
      with:
        since: tools.since
        feed: tools.feed
        filter: tools.filter
        channels: tools.channels
        include_docs: tools.include_docs
        limit: tools.limit
        heartbeat: tools.heartbeat
        timeout: tools.timeout
        style: tools.style
        active_only: tools.active_only
      outputParameters:
      - type: object
        mapping: $.