TypeScript monorepo: Lightdash API client, CLI, and MCP server.
All tools are available as npm packages under the @lightdash-tools scope.
- HTTP client (packages/client/README.md) — Type-safe Lightdash API client with rate limiting, retries, and shared types. Install via
npm install @lightdash-tools/client. - CLI (packages/cli/README.md) — Command-line interface for Lightdash. Run directly via
npx @lightdash-tools/clior install globally vianpm install -g @lightdash-tools/cli. - MCP (packages/mcp/README.md) — MCP server that exposes Lightdash as tools for AI assistants. Run directly via
npx @lightdash-tools/mcp.
CLI uses a hierarchical safety stack (ADR-0005): LIGHTDASH_TOOLS_SAFETY_MODE / --safety-mode (read-only default, write-idempotent, write-destructive), plus optional dry-run, project allowlist, and audit log.
MCP is persona-first (ADR-0008): capability = persona toolIds; HTTP may pin via X-Lightdash-Project; process safety-mode / allowlist / dry-run are not used on MCP.
Shared agent-friendly features:
- Agent-safe surface — Irrecoverable ops stay off MCP/CLI (ADR-0004).
- Input validation — Known identifier fields only (
projectUuid,slug, …). - Audit log — Optional
LIGHTDASH_TOOLS_AUDIT_LOG.
For agent-specific guidance, see docs/agent-context/CONTEXT.md. For credentials, use env vars from your shell or CI; see docs/secrets-and-credentials.md.
Developing? See CONTRIBUTING.md. For agent instructions see AGENTS.md. For architectural decisions, see docs/adr/.
Apache-2.0