Apache CouchDB · Capability

Apache CouchDB HTTP API — Authentication

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

Run with Naftiko Apache CouchdbAuthentication

What You Can Do

GET
Getsession — Apache CouchDB Get Session Information
/v1/session
POST
Createsession — Apache CouchDB Create Authentication Session
/v1/session
DELETE
Deletesession — Apache CouchDB Delete Authentication Session
/v1/session

MCP Tools

apache-couchdb-get-session-information

Apache CouchDB Get Session Information

read-only idempotent
apache-couchdb-create-authentication-session

Apache CouchDB Create Authentication Session

apache-couchdb-delete-authentication-session

Apache CouchDB Delete Authentication Session

idempotent

Capability Spec

http-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache CouchDB HTTP API — Authentication
  description: 'Apache CouchDB HTTP API — Authentication. 3 operations. Lead operation: Apache CouchDB Get Session Information.
    Self-contained Naftiko capability covering one Apache Couchdb business surface.'
  tags:
  - Apache Couchdb
  - Authentication
  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-authentication
    baseUri: http://localhost:5984
    description: Apache CouchDB HTTP API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: _session
      path: /_session
      operations:
      - name: getsession
        method: GET
        description: Apache CouchDB Get Session Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createsession
        method: POST
        description: Apache CouchDB Create Authentication Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletesession
        method: DELETE
        description: Apache CouchDB Delete Authentication Session
        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-authentication-rest
    port: 8080
    description: REST adapter for Apache CouchDB HTTP API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/session
      name: session
      description: REST surface for _session.
      operations:
      - method: GET
        name: getsession
        description: Apache CouchDB Get Session Information
        call: http-authentication.getsession
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsession
        description: Apache CouchDB Create Authentication Session
        call: http-authentication.createsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesession
        description: Apache CouchDB Delete Authentication Session
        call: http-authentication.deletesession
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache CouchDB HTTP API — Authentication. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: apache-couchdb-get-session-information
      description: Apache CouchDB Get Session Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: http-authentication.getsession
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-couchdb-create-authentication-session
      description: Apache CouchDB Create Authentication Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: http-authentication.createsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-couchdb-delete-authentication-session
      description: Apache CouchDB Delete Authentication Session
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: http-authentication.deletesession
      outputParameters:
      - type: object
        mapping: $.