Documentation Index
Fetch the complete documentation index at: https://docs.cubby.pro/llms.txt
Use this file to discover all available pages before exploring further.
Using Cubby with Claude
Cubby integrates with Claude Code and Claude Desktop through the Model Context Protocol (MCP). This lets you deploy and manage apps directly from your AI conversations.This is the MCP path — an optional Claude-specific add-on, not the only way to use an
AI agent with Cubby. The CLI path works in Claude, Codex, and Cursor equally and needs no
MCP server. Start with Expert from paste for the
agent-neutral flow; see Codex and
Cursor for those tools. MCP just adds in-conversation
deploy_app / get_logs / set_secret tools to Claude.What’s MCP?
MCP (Model Context Protocol) is a standard way for AI assistants to interact with external tools. Cubby’s MCP server gives Claude the ability to:- Deploy apps to Cubby
- Manage secrets
- List your apps
- View logs
- Delete apps
Setup
The Cubby MCP server is published to npm as@cubby-pro/mcp. You can launch it on demand with npx -y @cubby-pro/mcp (no global install required). It runs as a local stdio MCP server, so your MCP client launches it on your machine and gives it access to your project directory.
Claude Code (project-local MCP)
Claude Code reads MCP servers from your project at.claude/settings.local.json (machine-local) or .claude/settings.json (committed/shared). cubby init scaffolds .claude/settings.local.json for you. To configure manually:
Claude Desktop (global MCP config)
Claude Desktop has a single global config file — not the same path as Claude Code:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Use
-y so npx does not prompt for a confirmation — MCP clients launch the server non-interactively.Available Tools
The MCP server provides these tools to Claude:| Tool | Description |
|---|---|
deploy_app | Deploy an app from a local project directory (absolute path) |
check_app | Validate a local project before deploying |
set_secret | Set an environment variable |
list_secrets | List secrets for an app |
list_apps | List your deployed apps |
get_logs | View container logs |
delete_app | Delete a deployed app |
whoami | Show the authenticated Cubby user |
Example Workflows
Build and Deploy
Ask Claude to build and deploy an app in a single conversation:“Build a simple todo app with Prisma and deploy it to Cubby”Claude will:
- Create the project structure
- Write the code
- Deploy using the
deploy_apptool
Add a Secret
“Set my OpenAI API key as a secret for my todo-app”Claude will:
- Ask you for the API key value
- Use
set_secretto store it - Tell you to redeploy for it to take effect
Check App Status
“Show me the logs for my todo-app”Claude will use
get_logs and format the output for you.
Authentication
The MCP server uses the same credentials as the CLI. If you’re logged into the CLI (cubby login), the MCP server will work automatically.
If you haven’t logged in:
The CUBBY.md Context File
When Claude is building apps for Cubby, point it to theCUBBY.md file:
“Read CUBBY.md and follow its patterns when building this app”This file contains:
- Platform constraints
- API route patterns (especially the async params for Next.js 16)
- Authentication headers
- What NOT to do (no auth libraries, etc.)
Example: Full Workflow
Here’s what a typical conversation might look like: You: Build a simple expense tracker app. Use Prisma for the database with an Expense model that has amount, description, and date fields. Deploy it to Cubby. Claude:- Creates the project with
cubby init - Defines the Prisma schema
- Creates API routes for CRUD operations
- Builds a simple UI
- Uses
deploy_appto deploy - Returns the live URL
- Asks you for your OpenAI API key
- Uses
set_secretto store it - Reminds you that a redeploy is needed
- Uses
deploy_appto redeploy
- Uses
get_logs - Formats and displays the logs
Tips
Be Specific
Tell Claude exactly what you want:- “Deploy this app to Cubby” - clear
- “Put this online” - vague
Reference CUBBY.md
When starting a new app, tell Claude:“This is a Cubby app. Read CUBBY.md for context.”
Redeploy After Secrets
Setting secrets doesn’t restart your app. After adding secrets:“Redeploy the app so it picks up the new secret”
Troubleshooting
”Tool not available”
Make sure the MCP config is correct and Claude has been restarted.”Not authenticated”
Runcubby login in your terminal. Claude Desktop launches the MCP server with a non-interactive shell and cannot finish a magic-link login on your behalf.
deploy_app returns NO_LOCAL_FS
Your MCP transport does not expose a local filesystem. Cubby’s MCP server only supports local stdio deploys today. Run cubby deploy from your terminal in the project directory instead.
Claude Desktop deploy fails
- Pass an absolute project path to
deploy_app(/Users/you/projects/my-app), not a relative path or~. - Confirm you ran
cubby loginfirst. - Inspect Claude Desktop’s MCP logs for the underlying error before retrying.
”Deploy failed”
Ask Claude to runcubby check to see what’s wrong.
Related
- Expert from paste - the agent-neutral paste flow (no MCP required)
- Using Cubby with Codex
- Using Cubby with Cursor
- CUBBY.md File - Context file for AI assistants
cubby deploy- CLI deploy commandcubby secrets- CLI secrets management