CHUMBO API & CLI REFERENCE

Chumbo API and CLI Documentation (v0.16.1)

Complete API exports, CLI command reference, agent skill installation, and Streamable HTTP MCP endpoints for Chumbo on Supabase.

Quickstart and non-interactive CLI

Run Chumbo inside an existing Supabase repository (supabase/config.toml), a Next.js App Router project (--target next), or a standalone Node 22+ service (--target node). Every command supports --plan, --yes, and --json so coding agents run without interactive prompts.

npm install chumbo@0.16.1 zod@^4.2.0
npx chumbo skill install
npx chumbo setup --plan --json
npx chumbo doctor --url https://PROJECT_REF.supabase.co/functions/v1/mcp --json

Package subpath exports

Chumbo separates server, middleware, browser UI, testing, and Node CLI surfaces into nine explicit subpath exports so Edge Function cold starts stay minimal:

  • chumbo – createSupabaseMcp, collectionInputSchema, collectionResult, defineCursor, registerCollection, guidedResult, fromSupabaseError, defineCapability, defineProfiles, withProfile, projectInputFields, observeResource, requireObserved, mintPreview, consumePreview, defineMcpApp, registerMcpApp.
  • chumbo/middleware – withChumbo, chumboMcpHandler, withMcpCors, and withMcpTransportArmor for official @supabase/middleware pipelines.
  • chumbo/testing – createMcpTestClient, createTestAuthHarness, assertRlsIsolation, lintUnmountedToolReferences, estimateCatalogTokens, diffSurfaceSnapshots.
  • chumbo/app – Browser sandbox workspace helpers (createAppWorkspace, callAppTool, createAppMutation) for inline ui:// MCP Apps.
  • chumbo/connect – Zero-dependency describeAgentConnections and renderConnectMarkdown for Claude, ChatGPT, Claude Code, Cursor, and CLI onboarding.
  • chumbo/insights – Self-hosted payload-free telemetry sinks (createTelemetrySink, composeEventSinks, buildRunTimeline).
  • chumbo/cli-host & chumbo/cli-package – Project-branded CLI runtime with OS-keychain PKCE login, headless <BIN>_TOKEN auth, and manifest-backed package rendering.
  • chumbo/node – toNodeHandler and serve over node:http with Brotli/Gzip compression and Server-Timing.

CLI commands (npx chumbo)

The chumbo binary provides eleven subcommands covering scaffolding, local simulation, remote diagnostics, surface locking, MCP App bundling, and branded CLI generation:

npx chumbo setup [--auth oauth|api-key|bearer|public] [--target edge-function|next|node] [--insights] [--plan] [--yes] [--json]
npx chumbo status [--json]
npx chumbo dev [--function mcp] [--workbench] [--app <name>]
npx chumbo doctor --url <mcp-url> [--token <jwt>] [--second-token <jwt>] [--call-tool <name>] [--json]
npx chumbo try <tool> --as user-a,user-b [--yes] [--json]
npx chumbo surface snapshot --yes | npx chumbo surface diff
npx chumbo app add <name> | npx chumbo app build | npx chumbo app list
npx chumbo cli init --bin <name> [--plan] [--json] | npx chumbo cli render | npx chumbo cli try
npx chumbo test scaffold --from-run <receipt.json>
npx chumbo skill install | status | update
npx chumbo cloud setup [--deploy] [--yes] [--json]

Public Docs MCP server and skill discovery

Connect any Streamable HTTP MCP client directly to https://chumbo.dev/mcp to search all 26 engineering guides, fetch Markdown recipes, or read the official Chumbo skill. Agent skill managers can also read /.well-known/agent-skills/index.json or /r/middleware.json. Full source lives on GitHub (elsheppo/chumbo).

claude mcp add --transport http chumbo-docs https://chumbo.dev/mcp