Apache CouchDB · Capability

Apache CouchDB HTTP API — Changes

Apache CouchDB HTTP API — Changes. 1 operations. Lead operation: Apache CouchDB Get Database Changes. Self-contained Naftiko capability covering one Apache Couchdb business surface.

Run with Naftiko Apache CouchdbChanges

What You Can Do

GET
Getchanges — Apache CouchDB Get Database Changes
/v1/{db}/changes

MCP Tools

apache-couchdb-get-database-changes

Apache CouchDB Get Database Changes

read-only idempotent

Capability Spec

http-changes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache CouchDB HTTP API — Changes
  description: 'Apache CouchDB HTTP API — Changes. 1 operations. Lead operation: Apache CouchDB Get Database Changes. Self-contained
    Naftiko capability covering one Apache Couchdb business surface.'
  tags:
  - Apache Couchdb
  - Changes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_COUCHDB_API_KEY: APACHE_COUCHDB_API_KEY
capability:
  consumes:
  - type: http
    namespace: http-changes
    baseUri: http://localhost:5984
    description: Apache CouchDB HTTP API — Changes business capability. Self-contained, no shared references.
    resources:
    - name: db-_changes
      path: /{db}/_changes
      operations:
      - name: getchanges
        method: GET
        description: Apache CouchDB Get Database Changes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: feed
          in: query
          type: string
          description: Type of changes feed to use.
        - name: since
          in: query
          type: string
          description: Start sequence number or 'now' for only new changes.
        - name: limit
          in: query
          type: integer
          description: Maximum number of changes to return.
        - name: include_docs
          in: query
          type: boolean
          description: Include the document body for each change row.
        - name: filter
          in: query
          type: string
          description: Filter function name (e.g., _doc_ids, _design).
    authentication:
      type: apikey
      key: AuthSession
      value: '{{env.APACHE_COUCHDB_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: http-changes-rest
    port: 8080
    description: REST adapter for Apache CouchDB HTTP 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: Apache CouchDB Get Database Changes
        call: http-changes.getchanges
        with:
          feed: rest.feed
          since: rest.since
          limit: rest.limit
          include_docs: rest.include_docs
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-changes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache CouchDB HTTP API — Changes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-couchdb-get-database-changes
      description: Apache CouchDB Get Database Changes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: http-changes.getchanges
      with:
        feed: tools.feed
        since: tools.since
        limit: tools.limit
        include_docs: tools.include_docs
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.