Couchbase · Capability

Couchbase Sync Gateway Admin REST API — Server

Couchbase Sync Gateway Admin REST API — Server. 2 operations. Lead operation: List all databases. Self-contained Naftiko capability covering one Couchbase business surface.

Run with Naftiko CouchbaseServer

What You Can Do

GET
Listdatabases — List all databases
/v1/all-dbs
GET
Getserverconfig — Get server configuration
/v1/config

MCP Tools

list-all-databases

List all databases

read-only idempotent
get-server-configuration

Get server configuration

read-only idempotent

Capability Spec

sync-gateway-admin-rest-server.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Couchbase Sync Gateway Admin REST API — Server
  description: 'Couchbase Sync Gateway Admin REST API — Server. 2 operations. Lead operation: List all databases. Self-contained
    Naftiko capability covering one Couchbase business surface.'
  tags:
  - Couchbase
  - Server
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COUCHBASE_API_KEY: COUCHBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: sync-gateway-admin-rest-server
    baseUri: https://localhost:4985
    description: Couchbase Sync Gateway Admin REST API — Server business capability. Self-contained, no shared references.
    resources:
    - name: _all_dbs
      path: /_all_dbs
      operations:
      - name: listdatabases
        method: GET
        description: List all databases
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: _config
      path: /_config
      operations:
      - name: getserverconfig
        method: GET
        description: Get server configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.COUCHBASE_USER}}'
      password: '{{env.COUCHBASE_PASS}}'
  exposes:
  - type: rest
    namespace: sync-gateway-admin-rest-server-rest
    port: 8080
    description: REST adapter for Couchbase Sync Gateway Admin REST API — Server. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/all-dbs
      name: all-dbs
      description: REST surface for _all_dbs.
      operations:
      - method: GET
        name: listdatabases
        description: List all databases
        call: sync-gateway-admin-rest-server.listdatabases
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/config
      name: config
      description: REST surface for _config.
      operations:
      - method: GET
        name: getserverconfig
        description: Get server configuration
        call: sync-gateway-admin-rest-server.getserverconfig
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: sync-gateway-admin-rest-server-mcp
    port: 9090
    transport: http
    description: MCP adapter for Couchbase Sync Gateway Admin REST API — Server. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-all-databases
      description: List all databases
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sync-gateway-admin-rest-server.listdatabases
      outputParameters:
      - type: object
        mapping: $.
    - name: get-server-configuration
      description: Get server configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sync-gateway-admin-rest-server.getserverconfig
      outputParameters:
      - type: object
        mapping: $.