Couchbase · Capability

Couchbase Capella App Services Public API — Changes

Couchbase Capella App Services Public API — Changes. 2 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
POST
Postchanges — Get changes feed via POST
/v1/{db}/changes

MCP Tools

get-changes-feed

Get changes feed

read-only idempotent
get-changes-feed-post

Get changes feed via POST

read-only

Capability Spec

capella-app-services-public-changes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Couchbase Capella App Services Public API — Changes
  description: 'Couchbase Capella App Services Public API — Changes. 2 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: capella-app-services-public-changes
    baseUri: https://{appEndpoint}
    description: Couchbase Capella App Services Public 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 to apply
        - name: channels
          in: query
          type: string
          description: Comma-separated list of channel names 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 for continuous feed
        - name: timeout
          in: query
          type: integer
          description: Timeout in milliseconds for longpoll feed
        - 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
      - name: postchanges
        method: POST
        description: Get changes feed via POST
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: SyncGatewaySession
      value: '{{env.COUCHBASE_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: capella-app-services-public-changes-rest
    port: 8080
    description: REST adapter for Couchbase Capella App Services Public 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: capella-app-services-public-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: $.
      - method: POST
        name: postchanges
        description: Get changes feed via POST
        call: capella-app-services-public-changes.postchanges
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: capella-app-services-public-changes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Couchbase Capella App Services Public 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: capella-app-services-public-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: $.
    - name: get-changes-feed-post
      description: Get changes feed via POST
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: capella-app-services-public-changes.postchanges
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.