Apache CouchDB · Capability

Apache CouchDB HTTP API — Database

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

Run with Naftiko Apache CouchdbDatabase

What You Can Do

GET
Getdatabaseinfo — Apache CouchDB Get Database Information
/v1/{db}
PUT
Createdatabase — Apache CouchDB Create Database
/v1/{db}
DELETE
Deletedatabase — Apache CouchDB Delete Database
/v1/{db}

MCP Tools

apache-couchdb-get-database-information

Apache CouchDB Get Database Information

read-only idempotent
apache-couchdb-create-database

Apache CouchDB Create Database

idempotent
apache-couchdb-delete-database

Apache CouchDB Delete Database

idempotent

Capability Spec

http-database.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache CouchDB HTTP API — Database
  description: 'Apache CouchDB HTTP API — Database. 3 operations. Lead operation: Apache CouchDB Get Database Information.
    Self-contained Naftiko capability covering one Apache Couchdb business surface.'
  tags:
  - Apache Couchdb
  - Database
  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-database
    baseUri: http://localhost:5984
    description: Apache CouchDB HTTP API — Database business capability. Self-contained, no shared references.
    resources:
    - name: db
      path: /{db}
      operations:
      - name: getdatabaseinfo
        method: GET
        description: Apache CouchDB Get Database Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createdatabase
        method: PUT
        description: Apache CouchDB Create Database
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: integer
          description: Number of shards for this database.
        - name: n
          in: query
          type: integer
          description: Number of replicas for each shard.
      - name: deletedatabase
        method: DELETE
        description: Apache CouchDB Delete Database
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: AuthSession
      value: '{{env.APACHE_COUCHDB_API_KEY}}'
      placement: cookie
  exposes:
  - type: rest
    namespace: http-database-rest
    port: 8080
    description: REST adapter for Apache CouchDB HTTP API — Database. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{db}
      name: db
      description: REST surface for db.
      operations:
      - method: GET
        name: getdatabaseinfo
        description: Apache CouchDB Get Database Information
        call: http-database.getdatabaseinfo
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createdatabase
        description: Apache CouchDB Create Database
        call: http-database.createdatabase
        with:
          q: rest.q
          n: rest.n
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedatabase
        description: Apache CouchDB Delete Database
        call: http-database.deletedatabase
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-database-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache CouchDB HTTP API — Database. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-couchdb-get-database-information
      description: Apache CouchDB Get Database Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: http-database.getdatabaseinfo
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-couchdb-create-database
      description: Apache CouchDB Create Database
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: http-database.createdatabase
      with:
        q: tools.q
        n: tools.n
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-couchdb-delete-database
      description: Apache CouchDB Delete Database
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: http-database.deletedatabase
      outputParameters:
      - type: object
        mapping: $.