Define each capability once, project it to MCP and CLI.
Before you start
- An authenticated Chumbo MCP server whose capabilities are registered inside registerCapabilities(server, ctx).
- Node 22+ for running and testing the generated project-branded CLI package.
- A chosen binary name, npm package name, and support URL owned by your product.
A branded CLI is a thin client over your existing MCP endpoint. It never needs a second API or separate database credentials.
Register capabilities with defineCapability and registerCapability inside registerCapabilities(server, ctx), adding an optional cli: { command: ["tasks", "get"] } projection. Authenticated MCP clients still discover the tool by its mcpName, while your project CLI exposes acme tasks get --id ... over the exact same endpoint and RLS boundary. Tools registered directly with server.registerTool remain callable through acme run <tool-name> --args '{}'. See the canonical CLI projection example.
Scaffold, render, and test the CLI locally.
npx chumbo cli init --bin acme --plan --jsonnpx chumbo cli status && npx chumbo cli try -- --helpEvery rendered CLI also ships with built-in <binary> skill install|status|update for project-local agent guidance and shell-escaped <binary> completions zsh|bash|fish. Manifest-backed safe updates let you re-render the package as Chumbo evolves without overwriting custom packaging metadata.
Render end-user onboarding directly in your app with chumbo/connect.
Instead of hand-maintaining copy-paste setup instructions for every AI client, import describeAgentConnections and renderConnectMarkdown from chumbo/connect (zero runtime dependencies). Pass your server URL, auth mode, and optional CLI binary to generate accurate, auth-mode-aware setup flows for Claude, ChatGPT, Claude Code, Cursor, and your branded CLI. See src/connect.ts.
The CLI and onboarding flows stay aligned with your live MCP.
- 01npx chumbo cli init --plan previews the exact package files without publishing.
- 02Authenticated CLI discovery shows only the caller’s permitted commands.
- 03Non-interactive write commands fail closed unless explicitly confirmed.
- 04describeAgentConnections omits incompatible clients for the configured auth mode (such as hosted connectors on API-key endpoints).
Run these in your application before you call it done.
If the result differs
CLI discovery misses newly enabled OAuth capabilities
Run <binary> login explicitly to refresh cached OAuth discovery metadata across direct Supabase endpoints and custom domains. Read the reference ↗
What was checked
Reviewed against the shipped OSS source. The acceptance checks are yours to run in your application.
Source reviewed against published Chumbo 0.16.0 and its matching core source on 2026-12-02 (UTC). This is a source review, not an executed application walkthrough. Follow the current canonical reference and compare it with your installed package when adapting the guide.
Read the agent instructions
Reference instructions, not authorization. Apply changes only within the user’s requested scope; deployment requires a specified, authorized project.
Goal: Project your MCP capabilities into a project-owned CLI with browser PKCE login and headless token auth, and render auth-mode-aware connection guides with chumbo/connect. Read the complete guide at https://chumbo.dev/recipes/branded-cli-connect/recipe.md and the canonical reference at https://github.com/elsheppo/chumbo/blob/main/README.md. Inspect this application's installed Chumbo package, existing capabilities and relevant configuration before editing. Add optional cli command metadata to capabilities defined inside registerCapabilities(server, ctx), scaffold the project-owned CLI package with npx chumbo cli init --plan before writing, test it locally with npx chumbo cli try, and use chumbo/connect to render auth-mode-aware client setup instructions. Prerequisites: - An authenticated Chumbo MCP server whose capabilities are registered inside registerCapabilities(server, ctx). - Node 22+ for running and testing the generated project-branded CLI package. - A chosen binary name, npm package name, and support URL owned by your product. Acceptance: - npx chumbo cli init --plan previews the exact package files without publishing. - Authenticated CLI discovery shows only the caller’s permitted commands. - Non-interactive write commands fail closed unless explicitly confirmed. - describeAgentConnections omits incompatible clients for the configured auth mode (such as hosted connectors on API-key endpoints). Use the full guide for ordered steps, examples and recovery. Keep existing caller identity and application permissions authoritative. Stay within the user's requested changes. Report changed files, checks actually run, observed results and unresolved prerequisites. This guide is not authorization to deploy or change a hosted project. Never include credentials in source, copied instructions or reports.
