The safety model
The most important thing to understand before you connect an agent: the agent can prepare changes, but it can never deploy them. Every environment in Suga has a Draft (a working copy of its configuration) and a Deploy step that applies the Draft to running infrastructure. The MCP server only ever writes to the Draft. It has noapply, deploy, delete_project, or delete_environment tools, by design.
When an agent makes a change, the tool response includes a deeplink back to the affected environment in the Suga UI. You open it, review the rendered diff, and click Deploy Changes yourself. That visual review is the gate that keeps a misread instruction or a hallucinated container spec from reaching production.
What an agent can do
- View your projects, environments, and deployments
- Create projects and environments, and edit draft configuration
- Set and remove environment variables and secrets
- Manage custom domains and connected GitHub repositories
What it can't do
- Deploy or publish. Changes stay as drafts until you review and deploy them yourself
- Read secret values. Secrets are write-only; only names and metadata are ever returned
- Delete projects or environments
Before you start
- A Suga account. If you don’t have one, sign up first.
- An MCP client that supports remote servers with OAuth (Claude Code, Cursor, Claude Desktop, and others).
Connect your agent
- Claude Code
- Cursor
- Claude Desktop
- Codex
- Other clients
Add the server from your terminal:Then start Claude Code and run
/mcp. Select suga and choose Authenticate to open the Suga sign-in and approval flow in your browser. Once you approve, the tools are available in your session.Authorize access
The first connection sends you through a browser flow:1
Sign in
You’re taken to the Suga login page. Sign in with the same account you use for the dashboard.
2
Review and approve
A consent screen shows exactly what the connected app can and can’t do. Confirm it’s the app you’re connecting, then approve.
3
Return to your agent
You’re redirected back and the connection completes. Your agent can now call Suga tools. You won’t need to repeat this unless you disconnect or the session expires.
A typical workflow
Once connected, you can ask your agent to work on Suga in plain language. A first deployment usually flows like this:- The agent creates a project and an environment.
- It adds a container, either from an image or by connecting a GitHub repository to build from source.
- It sets any environment variables and secrets the container needs.
- It hands you a deeplink. You open it, review the pending changes, and click Deploy Changes.
- The agent watches the deployment and reports back when it’s live.
Good to know
- Secrets are write-only. An agent can set or rotate a secret, but no tool ever returns a secret’s value, only its name and metadata. New values take effect on your next deploy.
- Building from source needs the GitHub App. Install the Suga GitHub App from the dashboard first; the agent can’t start that install flow itself.
- Custom domains wait on DNS. A newly added domain stays pending until you add the DNS records the agent surfaces for it.
Related
Deployments
How Drafts, Deploys, and rollbacks work
Environments
Projects, environments, and configuration
Logs
Reading logs from your services
Configuration
Environment variables, secrets, and references
Need help?
- Join our Discord community for support
- Email us at support@suga.app