Connect via MCP Server Config
Use this option to connect any MCP-compatible client to Stack Automation — including Claude Code (CLI), the Claude Code config file, Cursor, Windsurf, and other tools that support MCP servers. It's the most flexible path: one server definition that you either apply with a single command or merge into your client's config.
Prerequisites
- An MCP-compatible client installed.
- A Stack Automation API token
Install
-
In the MCP Server Config panel, click Download
stack-automation-mcp.json. This file contains the ready-to-use server definition. -
For Claude Code (CLI) — add the server with one command (replace the token):
claude mcp add --transport http stack-automation https://stackautomation.cisco.com/mcp \
-H "Authorization: Bearer <YOUR_STACK_AUTOMATION_TOKEN>"For the Claude Code config file (
~/.claude.json), Cursor, Windsurf, or other clients — merge the downloaded JSON into themcpServerssection of your client config. It looks like this:{
"mcpServers": {
"stack-automation": {
"type": "http",
"url": "https://stackautomation.cisco.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_STACK_AUTOMATION_TOKEN>"
}
}
}
}Use the exact
urlfrom your MCP Server Config panel; the MCP endpoint can differ per deployment. -
Verify the connection in your MCP client by asking: "List my Stack Automation spaces."
When you're done, tick "I've completed the setup — mark as connected" in the panel.
Operate
Once the server is registered, your client can call Stack Automation tools from any chat.
Verify the connection:
List my Stack Automation spaces.
Everyday examples:
- "Launch the
terraform-vpcblueprint in thestagingspace." - "List my running deployments and their costs."
- "Show why deployment
d-8842failed." - "Extend the lease on deployment
pr-1423-previewby 4 hours."
Client notes
- Claude Code (CLI): after
claude mcp add, runclaude mcp listto confirmstack-automationis registered. - Cursor / Windsurf: add the block to the client's MCP settings file, then reload the window so the server is picked up.
- Other clients: any client that reads an
mcpServersmap and supports thehttptransport with bearer auth will work with the same block.
Troubleshooting
- Server not listed. Confirm the JSON was merged into the correct
mcpServersobject (not nested elsewhere) and restart the client. - Unauthorized. Check the
Authorizationheader isBearer <token>with a valid, current token. - Endpoint unreachable. Verify the
urlmatches the one shown in your panel and that your network allows outbound HTTPS to it.