cb-analytics-admin
Use this skill when the user wants to inspect or manage the Analytics service's runtime — checking ingestion health, killing…
Use this skill when the user is setting up cb-analytics-mcp from scratch or troubleshooting an existing install — generating secrets, configuring .env, running --check, picking single- vs multi-cluster mode, tuning rate limits, configuring audit rotation, or using the CLI.
Claude Code
$ npx -y skills add celticht32/Couchbase-Skills-for-Claude.ai --skill cb-analytics-mcp-setup --agent claude-code
Codex
$ npx skills add celticht32/Couchbase-Skills-for-Claude.ai --skill cb-analytics-mcp-setup -a codex -y
Cursor
$ npx skills add celticht32/Couchbase-Skills-for-Claude.ai --skill cb-analytics-mcp-setup -a cursor -y
Gemini CLI
$ npx skills add celticht32/Couchbase-Skills-for-Claude.ai --skill cb-analytics-mcp-setup -a gemini-cli -y
GitHub Copilot
$ npx skills add celticht32/Couchbase-Skills-for-Claude.ai --skill cb-analytics-mcp-setup -a github-copilot -y
OpenCode
$ npx skills add celticht32/Couchbase-Skills-for-Claude.ai --skill cb-analytics-mcp-setup -a opencode -y
Windsurf
$ npx skills add celticht32/Couchbase-Skills-for-Claude.ai --skill cb-analytics-mcp-setup -a windsurf -y
name: cb-analytics-mcp-setup description: | Use this skill when the user is setting up cb-analytics-mcp from scratch or troubleshooting an existing install — generating secrets, configuring .env, running --check, picking single- vs multi-cluster mode, tuning rate limits, configuring audit rotation, or using the CLI. Trigger when the user mentions "install", "configure", "first run", "MCP_API_KEY", "GUI_PASSWORD", "clusters.json", "cb-analytics-mcp --check", "MAX_QUERY_ROWS", "RATE_LIMIT_", "AUDIT_ROTATE", "tools call", or "tools list". license: MIT
You're helping the user bring up or tune a cb-analytics-mcp installation. This skill covers configuration, validation, and the operator CLI.
Generate: `python -c "import secrets; print(secrets.token_urlsafe(48))"`
non-default `GUI_PASSWORD`.
Always recommend `cb-analytics-mcp --check` before `make run`. It returns:
`--check` doesn't try to reach the cluster. To verify network reachability too, use the **dashboard's Test Connection button** after starting the server (or `cb-analytics-mcp tools call ping_cluster --offline`, see CLI section below).
separate credentials per tenant.** Use `CB_ANALYTICS_CLUSTERS_FILE`. The file is a JSON array; each entry has `name`, `host`, `username`, `password`, and optional `tls`, `mgmt_port`, `analytics_port`, `verify_ssl`, `timeout_seconds`, `max_retries`. See `config/clusters.example.json`.
| Env var | Default | What it controls | |---|---|---| | `MAX_QUERY_ROWS` | `1000` | Soft cap on `execute_query` / `execute_query_readonly`. Responses include `truncated: true` and `full_row_count` when the cap kicks in. `0` disables. | | `RATE_LIMIT_QUERY_PER_SEC` | `10` | Token-bucket rate for all query tools (per API key). | | `RATE_LIMIT_READ_PER_SEC` | `60` | Token-bucket rate for read-only tools (list/get/ping/…). | | `RATE_LIMIT_WRITE_PER_SEC` | `1` | Token-bucket rate for mutating tools (upsert/delete user, links, restart, capella mutations, …). Intentionally conservative. | | `AUDIT_ROTATE_BYTES` | `10485760` (10 MB) | Rotate audit log when it exceeds this. `0` disables rotation. | | `AUDIT_ROTATE_KEEP` | `5` | How many rotated generations to keep (`audit.log.1`…`.5`). |
These defaults are deliberate. Before raising any limit, ask: "is the right answer actually a different architecture (caching layer, batched query, smarter pagination), not a higher rate limit?" Raising the write limit in particular is rarely the answer — a misbehaving client can easily cause real harm at 10 writes/sec.
When a rate limit fires, the tool response is:
{ "ok": false, "error": "RateLimitExceeded",
"message": "Rate limit exceeded for category 'write' (limit 1/sec). Retry in 0.83s.",
"category": "write", "rate_per_sec": 1, "retry_after_sec": 0.83 }This is by design — the rate limits ARE the recommended behavior. They are also recorded in the audit log as `success: false` so you can spot abusive clients.
For testing config or scripting workflows without going through Claude:
# Enumerate every registered tool
cb-analytics-mcp tools list
# Filter by rate-limit category
cb-analytics-mcp tools list --category write
# Offline mode: instantiates the pool in-process. No running server needed.
# Uses the same env config the server would.
cb-analytics-mcp tools call list_dataverses --offline
# Pass args. Values are JSON-parsed when possible, otherwise treated as
# strings. Nested JSON works:
cb-analytics-mcp tools call execute_query_readonly \
--arg statement='SELECT * FROM Default.Books LIMIT 5' \
--arg cluster=prod \
--offline
# Against a running server (uses MCP_API_KEY as bearer):
cb-analytics-mcp tools call list_users \
--remote http://localhost:8000/mcpBoth modes pretty-print the JSON result and exit non-zero on tool-level errors, so the CLI works in shell pipelines. Use it for:
--arg cluster=NAME --offline`)
TLS-port numbers (`18091`/`18095` are common).
working outbound HTTPS path to `cloudapi.cloud.couchbase.com`.
the path is on a read-only mount, set `AUDIT_LOG_ENABLED=false` or pick a writable location.
the active file. If your `AUDIT_LOG_FILE` is in a directory you only intend for the live log, the backups will end up there too. Pick a dedicated directory.
The cap exists to keep wire payloads sane. If you need the full result, use `execute_query_paginated` instead.
set `LOG_FILE`
Claude skill files for working with Couchbase — covering every major service and deployment pattern from application integration through AI applications, Kubernetes operations, mobile sync, security hardening, and analytics.
Use this skill when the user wants to inspect or manage the Analytics service's runtime — checking ingestion health, killing…
Use this skill when the user wants to manage Couchbase Capella resources through the Cloud Management API — listing organisations…
Use this skill when the user wants to inspect or configure the Couchbase cluster itself — node membership, memory quotas,…
Use this skill when the user is managing Analytics data-source links — S3, Azure Blob, GCS, or remote Couchbase links — including…
Use this skill when the user wants to write or improve SQL++ queries against Couchbase Analytics through cb-analytics-mcp.…
Use this skill when the user wants to inspect, discover, or document the structure of Couchbase Analytics dataverses and datasets…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.