# 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

```sh
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`: `createSupabaseMcp`, `collectionInputSchema`, `collectionResult`, `defineCursor`, `registerCollection`, `guidedResult`, `fromSupabaseError`, `defineCapability`, `defineProfiles`, `withProfile`, `projectInputFields`, `observeResource`, `requireObserved`, `mintPreview`, `consumePreview`, `defineMcpApp`, `registerMcpApp`.
- `chumbo/middleware`: `withChumbo`, `chumboMcpHandler`, `withMcpCors`, `withMcpTransportArmor`.
- `chumbo/testing`: `createMcpTestClient`, `createTestAuthHarness`, `assertRlsIsolation`, `lintUnmountedToolReferences`, `estimateCatalogTokens`, `diffSurfaceSnapshots`.
- `chumbo/app`: `createAppWorkspace`, `callAppTool`, `createAppMutation`.
- `chumbo/connect`: `describeAgentConnections`, `renderConnectMarkdown`.
- `chumbo/insights`: `createTelemetrySink`, `composeEventSinks`, `buildRunTimeline`.
- `chumbo/cli-host` & `chumbo/cli-package`: OS-keychain PKCE CLI runtime and package renderer.
- `chumbo/node`: `toNodeHandler` and `serve` with Brotli/Gzip wire compression and `Server-Timing`.

## Public Docs MCP server & skill discovery

- Streamable HTTP MCP endpoint: `https://chumbo.dev/mcp`
- MCP Server Card: `https://chumbo.dev/.well-known/mcp/server-card.json`
- Agent Skills Index: `https://chumbo.dev/.well-known/agent-skills/index.json`
- shadcn Registry Blocks: `https://chumbo.dev/r/middleware.json`, `https://chumbo.dev/r/mcp.json`
- Canonical Repository: https://github.com/elsheppo/chumbo
