Connect your coding agent (MCP)
ekoDB — your APIs, MCP, and data. Use the ekoDB CLI to connect your coding agent through the ekoDB Web App. ekoDB provides the database MCP server; AI Hive is an optional managed AI server with its own MCP endpoint, permissions and credentials.
Setup and managed skills
Install the ekoDB CLI on macOS or Linux:
curl -fsSL https://storage.googleapis.com/ekodb-cdn/releases/ekodb-cli/install/install.sh | bash
On Windows, use PowerShell:
iwr https://storage.googleapis.com/ekodb-cdn/releases/ekodb-cli/install/install.ps1 | iex
The installers verify the downloaded binary's SHA-256 checksum before replacing an existing installation. Open a new terminal if needed to pick up the install directory on PATH. Check ekodb-cli --version and ekodb-cli setup --help; setup and managed skills require ekoDB CLI v0.3.0 or later. Then connect your coding agent:
ekodb-cli setup
Setup opens the ekoDB Web App for browser consent, stores scoped credentials in the operating system's credential store, and installs the documentation bundle vendored in that CLI release. It detects installed supported CLIs; use --agent claude-code, --agent codex or --agent gemini to select one explicitly. Use --deployment-id <deployment-id> for an existing deployment, or --claw-url <ai-hive-base-url> for AI Hive free provisioning. Consult setup --help for the options supported by your installed release.
| Coding agent | Connection from setup | Managed skills |
|---|---|---|
Claude Code (claude-code) | Hosted MCP with OS-keychain helpers | .claude/skills/ekodb-*/SKILL.md |
Codex (codex) | Hosted MCP with OS-keychain helpers | Managed AGENTS.md |
Gemini CLI (gemini) | MCP authentication deferred | Managed GEMINI.md |
| Copilot CLI | MCP authentication/registration deferred | Setup installation deferred; the generated bundle includes Copilot instructions |
Gemini CLI receives managed skills only: it has no native keychain header-command contract for MCP authentication. Do not work around that gap with static headers or tokens in configuration. Copilot CLI is also deferred. Claude Desktop (claude-desktop) is supported by the manual MCP installer below, rather than by setup's managed-skill installation.
Refresh from the installed CLI's vendored bundle, or remove its managed skills without changing unrelated user instructions:
ekodb-cli skills update
ekodb-cli skills uninstall
These commands work offline; update the CLI to obtain a newer vendored documentation bundle. ekodb-cli setup --uninstall also removes its MCP registrations and native-store credentials. Never assume a generated bundle is already installed.
Manual hosted MCP connection
For Claude Code, Claude Desktop and Codex, the ekoDB CLI can register hosted HTTP endpoints and OS-keychain helpers separately from setup. The local mcp serve transport has been retired. You need service base URLs, scoped agent credentials and the installed coding agent. AI Hive's hosted endpoint must be enabled by its administrator. Database MCP requires a registered key with a recorded kind. See authentication for the database API-key-to-JWT exchange.
- Sign in to the database with
ekodb-cli mcp login --server ekodb --ekodb-url <database-base-url> --ekodb-api-key-file <agent-key-file>. Supply a registered scoped key, never the bootstrap admin key. Protect the input file and keep it out of the repository. - For AI Hive, use
ekodb-cli mcp login --server claw --profile default. - Register the desired coding agent with
ekodb-cli mcp install <harness> --ekodb-url <database-base-url> --claw-url <ai-hive-base-url>, where<harness>isclaude-code,claude-desktoporcodex. Supply base URLs, without/api/mcpor/mcpappended. - Run
ekodb-cli mcp statusand reconnect the coding agent so it reads the registration. - Have the approving person open the appropriate approval watcher. The agent's MCP credential cannot substitute for that person's credential.
Every MCP command accepts --profile <name>; the default is default. Use the same profile for login and installation. These commands do not accept the general --format option. Do not paste a JWT or raw key into an agent's configuration or prompt. The helper's authorization output is for the MCP client to consume, not output to share in logs or support requests.
What is registered
| Server | Hosted endpoint | Credential |
|---|---|---|
| ekoDB | Database base URL plus /api/mcp | JWT derived from the scoped registered database key |
| AI Hive | AI Hive base URL plus /mcp | AI Hive MCP-scoped token |
The MCP configuration identifiers remain ekodb and ekodb-claw; CLI server selectors remain ekodb and claw, and the AI Hive URL option remains --claw-url. These literal identifiers are required by the tools.
The MCP reference covers each tool family and exact documentation anchors. AI Hive's catalogue is narrower than the database catalogue. Discover permitted tools with tools/list; do not broaden credentials just to make a missing tool appear.
Commands
| Command | Purpose |
|---|---|
ekodb-cli setup | Browser consent, native credential storage and managed agent installation |
ekodb-cli skills update / uninstall | Refresh or remove managed skills from the vendored bundle |
ekodb-cli mcp login | Sign in for selected MCP servers and store credentials through the OS credential store |
ekodb-cli mcp status | Show credential-store status and installed harnesses |
ekodb-cli mcp install <harness> | Register hosted endpoints with a supported coding agent |
ekodb-cli mcp uninstall <harness> | Remove server registrations; all removes all supported registrations |
ekodb-cli mcp logout | Revoke or remove selected MCP credentials |
Login and logout accept --server ekodb, --server claw or --server all. Removing a registration and signing out are separate operations: use uninstall to remove the connection and logout to end its stored MCP sign-in.
Approvals
A Confirm-tier call waits on its server for a person with a separate answering identity. With no surface open it is refused immediately. Use ekodb-cli approvals watch --server ekodb for database calls or ekodb-cli approvals watch --server claw for AI Hive calls. Database approvals require supported OS per-use presence; an unsupported machine fails closed.
Read the approvals contract before building a human surface or handling remembered grants. Approval does not widen the agent's access grants.