Agents
Your infra, in the agent loop.
Connect Stack MCP to Cursor, Claude, Copilot, Codex, OpenCode, Windsurf, or the CLI. Diagnose crashes, query logs, and operate services in natural language.
stackblaze agent -p "why is checkout crashing?"
Connect
Every agent, one server
Point any MCP client at https://mcp.stackblaze.cloud/mcp with a personal token. Or let the CLI write the file.
Cursor
~/.cursor/mcp.jsonAnysphere
Add the StackBlaze server, then reload MCP. Composer talks to your projects over HTTPS.
{
"mcpServers": {
"stackblaze": {
"type": "http",
"url": "https://mcp.stackblaze.cloud/mcp",
"headers": {
"Authorization": "Bearer kbr_pat_…"
}
}
}
}Claude Code
~/.claude.jsonAnthropic
Same HTTP server. Claude Code and Claude Desktop both read mcpServers from this file.
{
"mcpServers": {
"stackblaze": {
"type": "http",
"url": "https://mcp.stackblaze.cloud/mcp",
"headers": {
"Authorization": "Bearer kbr_pat_…"
}
}
}
}CLI
stackblaze setup mcpStackBlaze
Writes the config for you, then you can chat from the terminal. Scope with --pipeline, --phase, or --app.
stackblaze login stackblaze setup mcp stackblaze agent -p "why is checkout crashing?"
GitHub Copilot
.vscode/mcp.jsonGitHub
Workspace agent mode can call Stack MCP the same way Cursor does — HTTP plus a Bearer token.
{
"servers": {
"stackblaze": {
"type": "http",
"url": "https://mcp.stackblaze.cloud/mcp",
"headers": {
"Authorization": "Bearer kbr_pat_…"
}
}
}
}Codex
~/.codex/config.tomlOpenAI
OpenAI’s terminal agent. Point it at Stack MCP, or run the CLI next to it.
[mcp_servers.stackblaze]
url = "https://mcp.stackblaze.cloud/mcp"
http_headers = { Authorization = "Bearer kbr_pat_…" }OpenCode
opencode.jsonOpen source
Provider-agnostic terminal agent. Remote MCP with the same URL and token.
{
"mcp": {
"stackblaze": {
"type": "remote",
"url": "https://mcp.stackblaze.cloud/mcp",
"headers": {
"Authorization": "Bearer kbr_pat_…"
}
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.jsonCognition
Same mcpServers shape as Cursor. Reload the editor after you save the file.
{
"mcpServers": {
"stackblaze": {
"type": "http",
"url": "https://mcp.stackblaze.cloud/mcp",
"headers": {
"Authorization": "Bearer kbr_pat_…"
}
}
}
}What it does
The same control plane as the dashboard
- Diagnose from the editor
- Ask why an app is crashing. The agent reads status, searches logs, and proposes the fix — no PromQL, no grep across five tabs.
- Operate the stack
- Provision services, restart apps, and change config in natural language. Tool names are unprefixed: get_app, deploy_app, search_logs.
- Same token as the API
- Mint a kbr_pat_ token under Settings → API tokens. MCP, the REST API, and the CLI all use Authorization: Bearer.
Full tool list and REST surface live in Automation & MCP and the CLI reference.
Your stack, in every agent.
Point Cursor, Claude, Copilot, or the CLI at Stack MCP. Same token as the API. Same control plane as the dashboard.