Using with Claude Code

Telbase is designed for Claude Code. Every deploy returns structured feedback that Claude reads, interprets, and acts on — no human parsing needed.

Using a different AI agent?
Download TELBASE.md — a single file that works with any AI coding agent (Cursor, Copilot, Windsurf, and more).

Setup

One command registers Telbase as an MCP server and installs the /deploy slash command in Claude Code:

1

Register the MCP server

This writes to ~/.claude/mcp.json so Claude Code discovers Telbase tools automatically. Safe to run multiple times.

bash
npx telbase mcp register
2

Restart Claude Code

Claude Code reads MCP configuration on startup. After registering, restart your Claude Code session to pick up the new tools.

3

Deploy

Ask Claude to deploy, or type /deploy. Claude will use the Telbase MCP tools directly.

bash
Deploy this app to Telbase
npx works everywhere
If you installed Telbase via npx, the MCP server is automatically configured to use npx -y telbase mcp serve. No global install required.

The /deploy Command

When you type /deploy in Claude Code, it loads a prompt template that teaches Claude how to:

You can also just ask Claude naturally:

markdown
Deploy this to Telbase
Deploy this app and set up a PostgreSQL database
Deploy from my GitHub repo https://github.com/user/my-app

MCP Tools

When the MCP server is registered, Claude Code has access to 41 tools it can call directly — without shell commands:

Deploy & Monitoring

Project Management

Service Control

Rollback

Environment Variables

Database

Custom Domains

Scheduled Jobs

Storage

GitHub

Team & Organization

Account

MCP vs CLI
MCP tools and CLI commands produce identical JSON output. When MCP is registered, Claude prefers MCP tools because they have fewer moving parts (no shell, no PATH resolution).

Documentation Resources

The MCP server exposes 14 documentation resources that Claude reads for context when making decisions. Each is available at telbase://docs/{topic}:

Guided Prompts

Three built-in prompts provide step-by-step workflows for common operations:

The AI Feedback Loop

This is what makes Telbase different from other platforms. Every deploy response includes machine-actionable structured feedback. When a build fails, Claude reads the AI-powered diagnosis — including root cause, confidence score, and auto-fixable code changes:

Build failure response
{
  "data": {
    "status": "failed",
    "errorCode": "BUILD_FAILED",
    "extractedErrors": [
      {
        "code": "MISSING_DEPENDENCY",
        "title": "Missing @prisma/client",
        "suggestion": "npm install @prisma/client"
      }
    ],
    "suggestions": [
      {
        "type": "code_change",
        "detail": "Add @prisma/client to dependencies in package.json"
      },
      {
        "type": "cli_retry",
        "command": "telbase deploy --local --json --auto"
      }
    ],
    "detection": {
      "ormType": "prisma",
      "ormConfidence": 0.95,
      "databaseProvider": "neon",
      "warnings": []
    },
    "aiDiagnosis": {
      "diagnosis": "prisma is in devDependencies but needed at build time",
      "confidence": 0.92,
      "category": "missing_dependency",
      "fixes": [{ "type": "dependency", "description": "Move @prisma/client to dependencies", "autoFixable": true }],
      "fixesAreAlternatives": false
    }
  }
}

The self-healing loop works like this:

  1. Deploy — Claude runs telbase deploy --json --auto
  2. Read feedback — Claude reads aiDiagnosis (when present, confidence ≥ 0.7) or falls back to extractedErrors and suggestions[]
  3. Fix — Claude applies fixes where autoFixable: true (install deps, fix imports, update config)
  4. Redeploy — Claude runs the cli_retry command or uses redeployCommand from the diagnosis
  5. Success — Claude reports the live URL to you

Suggestion types

Prompt Examples

Copy these prompts to get started quickly:

Deploy a new app

markdown
Build me a project tracker with a PostgreSQL database using Next.js and Prisma, then deploy it to Telbase.

Deploy an existing project

markdown
Deploy this project to Telbase. If the build fails, read the error suggestions and fix the code.

Add a database to an existing app

markdown
Add a SQLite database to this app using Prisma, create a schema for tracking approvals, then redeploy to Telbase.

Set environment variables and deploy

markdown
Set these environment variables on my Telbase project and redeploy:
- OPENAI_API_KEY=sk-...
- RESEND_API_KEY=re_...

Debug a failed deploy

markdown
My last deploy to Telbase failed. Check the build logs, figure out what went wrong, fix it, and redeploy.

Deploy from GitHub

markdown
Deploy https://github.com/myorg/internal-dashboard to Telbase and set up auto-deploy on push.

Add a custom domain

markdown
Set up app.acme.com as a custom domain on my Telbase project and verify the DNS.

Deploy a Docker container

markdown
Deploy this Java Spring Boot app to Telbase using the existing Dockerfile. Docker support is available on all paid plans.

Deploy a scheduled job

markdown
Deploy this data pipeline as a scheduled job that runs every hour at the top of the hour, Eastern time.

Per-Project Setup

For project-specific MCP configuration, Telbase creates a .telbase/mcp.json file in your project directory. This is useful when you want Claude Code to automatically discover the Telbase tools when working in a specific project:

bash
# Install project-level MCP config
npx telbase mcp register

The project config is added to .gitignore automatically.

Works with npx
If Telbase was installed via npx, the MCP server detects this and uses npx -y telbase mcp serve as the command. This means the MCP server works even without a global install.

Next Steps