Skip to Content

Use StackBlaze from your AI coding tool

Give Cursor, Claude Code, Codex, VS Code (Copilot), Windsurf or OpenCode the StackBlaze skill and MCP server, so your agent can deploy and operate your apps.

The StackBlaze CLI can set up your AI coding tool in one command. It installs:

  • The StackBlaze skill: instructions that teach the agent how to use the stackblaze CLI and MCP tools (deploying apps, linking a project, reading logs, managing add-ons).
  • The StackBlaze MCP server: https://mcp.stackblaze.cloud/mcp, which the agent calls with your API token.

Any MCP client that speaks streamable HTTP can use the server, not only the tools below. Its tools act as you: they can see and change only what your role allows.

You need the CLI installed and signed in first.

Set up every tool at once

stackblaze setup agent -y

It configures the AI coding tools it finds on your machine (--agent all is the default; pass --agent cursor, claude, codex, vscode, windsurf, opencode or copilot to pick one). When we ran it on a machine with none of them installed, it set up Cursor:

Configuring StackBlaze agent tooling (cursor)
OK Installed skill → ~/.agents/skills/stackblaze/SKILL.md
OK Installed skill → ~/.cursor/skills-cursor/stackblaze/SKILL.md
OK Configured stackblaze MCP for Cursor → ~/.cursor/mcp.json
OK Agent setup complete. Restart the editor if MCP was already loaded.

The MCP entry it writes uses the API token your CLI signed in with. Restart the editor if it was already running.

Set up the MCP server for one tool

stackblaze setup mcp --ide claude

--ide takes cursor (the default), claude, codex, vscode (or copilot), windsurf or opencode. The stackblaze entry is merged into that tool's config file; other servers in it are kept:

ToolFile
Cursor~/.cursor/mcp.json
Claude Code~/.claude.json
Codex~/.codex/config.toml ([mcp_servers.stackblaze])
VS Code (Copilot)mcp.json in your VS Code user folder
Windsurf~/.codeium/windsurf/mcp_config.json
OpenCode~/.config/opencode/opencode.json

Configure it by hand

Add --print to print the snippet instead of writing the file. The token is shown as a placeholder. For Claude Code:

stackblaze setup mcp --ide claude --print
{
  "mcpServers": {
    "stackblaze": {
      "type": "http",
      "url": "https://mcp.stackblaze.cloud/mcp",
      "headers": {
        "Authorization": "Bearer <STACKBLAZE_TOKEN>"
      }
    }
  }
}

For Codex, the token is read from the STACKBLAZE_TOKEN environment variable:

[mcp_servers.stackblaze]
url = "https://mcp.stackblaze.cloud/mcp"
bearer_token_env_var = "STACKBLAZE_TOKEN"

The other tools take the same entry with a different shape. Windsurf names the address serverUrl:

stackblaze setup mcp --ide windsurf --print
{
  "mcpServers": {
    "stackblaze": {
      "serverUrl": "https://mcp.stackblaze.cloud/mcp",
      "headers": {
        "Authorization": "Bearer <STACKBLAZE_TOKEN>"
      }
    }
  }
}

VS Code (Copilot) puts it under servers. The CLI suggests pasting it into .vscode/mcp.json to set it up for one workspace:

stackblaze setup mcp --ide vscode --print
{
  "servers": {
    "stackblaze": {
      "type": "http",
      "url": "https://mcp.stackblaze.cloud/mcp",
      "headers": {
        "Authorization": "Bearer <STACKBLAZE_TOKEN>"
      }
    }
  }
}

Get a token

Replace <STACKBLAZE_TOKEN> with an API token. Create one in the dashboard (see API tokens) or with the CLI. The CLI suggests one per tool, for example:

stackblaze tokens create claude-mcp

The token is printed once. A token from the CLI expires after 30 days unless you pass --expires (like 90d, 1y or a date). Tokens start with sb_pat_. Tokens made before the rename, starting with kbr_pat_, still work.

The token can do whatever your account can. Keep it out of your repositories and shared config, give it an expiry, and revoke it in API tokens once a tool no longer uses it.

The MCP server rejects requests without a token: it answers 401.

Install only the skill

stackblaze setup skills

--agent takes cursor, claude or all (the default). On our test machine it wrote:

OK Installed skill → ~/.agents/skills/stackblaze/SKILL.md
OK Installed skill → ~/.cursor/skills-cursor/stackblaze/SKILL.md

Which tools your AI tool sees

The server lists a core set of tools by default: deploying, and finding out why something is broken. The rest are parked, so your AI tool's context isn't filled with tools it rarely needs. Two tools reach them:

  • find_tools searches every tool, parked ones included, and returns each one's name, description and parameters.
  • run_tool runs any tool by name.

To list every tool from the start, add ?profile=all to the URL (https://mcp.stackblaze.cloud/mcp?profile=all), or send the header X-Kubero-MCP-Tool-Profile: all.

The tools, by what they're for (★ is in the core set):

AreaTools
Browselist_pipelines ★, get_app ★, list_builds ★, list_addons ★, get_environment, status
Deploysearch_templates ★, get_template ★, deploy_template ★, inspect_repo ★, inspect_image ★, deploy_app ★, update_app ★, create_pipeline ★, redeploy ★, trigger_build ★, wait_for_app ★, rename_app, delete_app ★, delete_pipeline ★
Logs and troubleshootingget_logs ★, search_logs ★, get_metrics ★, get_app_events ★, check_app_health ★, diagnose_app_performance ★, restart_app ★, scale_app
Add-ons and datarepair_addon_connection ★, rename_addon, reset_addon_credential, inspect_database, manage_kafka_connectors
Snapshotssnapshot_app, list_snapshots, clone_app, get_snapshot_job, migrate_app
Functionslist_functions, get_function, deploy_function, invoke_function, delete_function
Accountget_billing ★, get_audit
Supportlist_support_tickets, get_support_ticket, create_support_ticket, reply_support_ticket

A few things to know:

  • Deletes need a yes. delete_app, delete_pipeline and delete_function refuse to run unless the call says confirm: true, and they tell your AI tool to ask you first. Deleting an app also deletes its volumes and the databases made only for it. A call through run_tool needs the same confirm: true.
  • Logs: get_logs reads a service's recent lines, the same ones as its Logs tab. search_logs searches the stored log history. For a live tail, use stackblaze logs -f in a terminal. See Logs.
  • inspect_repo clones public repositories over HTTPS only. To deploy private code, connect the repository in the dashboard: see Deploy from GitHub.
  • inspect_database only reads.

On this page