Apache CouchDB · Capability

Apache CouchDB HTTP API — Design Documents

Apache CouchDB HTTP API — Design Documents. 1 operations. Lead operation: Apache CouchDB Get View Results. Self-contained Naftiko capability covering one Apache Couchdb business surface.

Run with Naftiko Apache CouchdbDesign Documents

What You Can Do

GET
Getview — Apache CouchDB Get View Results
/v1/{db}/design/{ddoc}/view/{view}

MCP Tools

apache-couchdb-get-view-results

Apache CouchDB Get View Results

read-only idempotent

Capability Spec

http-design-documents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache CouchDB HTTP API — Design Documents
  description: 'Apache CouchDB HTTP API — Design Documents. 1 operations. Lead operation: Apache CouchDB Get View Results.
    Self-contained Naftiko capability covering one Apache Couchdb business surface.'
  tags:
  - Apache Couchdb
  - Design Documents
  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-design-documents
    baseUri: http://localhost:5984
    description: Apache CouchDB HTTP API — Design Documents business capability. Self-contained, no shared references.
    resources:
    - name: db-_design-ddoc-_view-view
      path: /{db}/_design/{ddoc}/_view/{view}
      operations:
      - name: getview
        method: GET
        description: Apache CouchDB Get View Results
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ddoc
          in: path
          type: string
          description: Design document name (without _design/ prefix).
          required: true
        - name: view
          in: path
          type: string
          description: View name within the design document.
          required: true
        - name: include_docs
          in: query
          type: boolean
          description: Include the full document body for each row.
        - name: limit
          in: query
          type: integer
          description: Maximum number of rows to return.
        - name: key
          in: query
          type: string
          description: Return only rows matching the specified key.
        - name: reduce
          in: query
          type: boolean
          description: Execute the reduce function.
    authentication:
      type: apikey
      key: AuthSession
      value: '{{env.APACHE_COUCHDB_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: http-design-documents-rest
    port: 8080
    description: REST adapter for Apache CouchDB HTTP API — Design Documents. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/{db}/design/{ddoc}/view/{view}
      name: db-design-ddoc-view-view
      description: REST surface for db-_design-ddoc-_view-view.
      operations:
      - method: GET
        name: getview
        description: Apache CouchDB Get View Results
        call: http-design-documents.getview
        with:
          ddoc: rest.ddoc
          view: rest.view
          include_docs: rest.include_docs
          limit: rest.limit
          key: rest.key
          reduce: rest.reduce
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-design-documents-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache CouchDB HTTP API — Design Documents. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: apache-couchdb-get-view-results
      description: Apache CouchDB Get View Results
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: http-design-documents.getview
      with:
        ddoc: tools.ddoc
        view: tools.view
        include_docs: tools.include_docs
        limit: tools.limit
        key: tools.key
        reduce: tools.reduce
      outputParameters:
      - type: object
        mapping: $.