The MCP server
The CloudBooster Guard MCP server lets an AI coding agent, such as Claude Code or Codex, check a proposed infrastructure change before the pull request exists.
The MCP server
The CloudBooster Guard MCP server lets an AI coding agent, such as Claude Code or Codex, check a proposed infrastructure change before the pull request exists. The agent sends the plan, and Guard resolves it against your organisation's live cloud state and answers with the same verdict a pull request gets: Critical, High, Watch or Clean, with what the diff says and what it resolves to.
The MCP server is on every plan. Free includes 200 checks a month; Pro and Enterprise have no limit. See Monthly checks on Free.
Create a token for the MCP server
The MCP server signs in with an API token that has the mcp scope.
- In Settings → API tokens, select Create token. You need the owner or admin role.
- Under What is it for?, pick MCP / AI agent. On Free, it is the only choice: the other kinds of token are part of Pro.
- Name the token, pick how long it lasts, and select Create token.
- Copy the token. You will not see it again.
A token with only the mcp scope reaches the MCP server and nothing else: it can't upload plans
from CI or read the API. To rotate or revoke it, see API tokens.
Connect your agent
Your MCP address is your Guard API, the origin of the Console, followed by /v1/mcp, for example
https://guard.example.com/v1/mcp. Settings → Integrations shows the commands with your address
filled in.
Claude Code
claude mcp list then shows cbx-guard as connected.
Codex
In ~/.codex/config.toml:
Then set CBX_GUARD_TOKEN to the token in the shell Codex runs from.
What the agent can ask
| Tool | What it answers |
|---|---|
assess_change | Checks a proposed Terraform, CloudFormation, Pulumi, CDK, Crossplane or Kubernetes plan against your live state and returns the verdict. The verdict is recorded in your organisation's ledger as an MCP check. It never counts as a finding on your cloud. |
explain_resource_exposure | Explains whether a resource is reachable and whether it is production, from your live state. |
blast_radius | Lists what a resource reaches and what reaches it. |
safe_pattern | Returns a safe infrastructure-as-code snippet for what you want to build. |
account_context | Says which organisation the token belongs to. |
None of the tools changes your infrastructure.
Monthly checks on Free
On Free, your organisation can run assess_change 200 times in each calendar month (UTC). The other
tools are not counted.
- Where to see it. Settings → Billing shows the checks used this month and when the count starts again, for example "37 of 200 used this month".
- After the 200th check. The agent still gets an answer, but not a verdict: the answer says the limit is reached, when checks start again, and how to upgrade. Nothing is checked or recorded until the next month starts on the 1st at 00:00 UTC.
- To check without a limit, upgrade to Pro ($99 per production account/month): an owner can do it in Settings → Billing. Pro and Enterprise have no monthly limit, and the upgrade applies to the next check.
Troubleshooting
| What you see | What to do |
|---|---|
| HTTP 401, or the agent says it can't connect | The token is missing, revoked or expired. Check the Authorization: Bearer header, or create a new token. |
HTTP 403, API token lacks 'mcp' scope | The token was created for something else. Create one with MCP / AI agent. |
HTTP 402, plan_upgrade_required | Your organisation's plan doesn't include the MCP server. An owner can change the plan in Settings → Billing. |
Not assessed: this organisation has used all 200 MCP checks | Free's monthly checks are used up. See Monthly checks on Free. |
billing_restricted | Your organisation's billing needs attention. An owner can settle it in Settings → Billing. |