MCP Workflows
Real-world examples of AI agents using sota.io through MCP. Each workflow shows the natural language prompt and what happens behind the scenes.
Deploy a New App
Prompt: "Create a new sota.io project called my-api and deploy the current directory"
The AI agent will:
- Call
create-projectwith name "my-api" - Call
deploywith the new project ID - Return the live URL (e.g.,
https://my-api.sota.io)
Follow-up: "Show me the build logs"
The agent calls get-logs to display build output, helping you diagnose any issues.
Check Deployment Status
Prompt: "What's the status of my sota.io project?"
The agent will:
- Call
list-projectsto find your project - Call
get-statuswith the project ID - Show the live URL, deployment status, and recent history
Manage Environment Variables
Set a variable:
"Set DATABASE_URL on my project to postgres://user:pass@host/db"
The agent calls set-env with the key and value, then confirms it was set. The variable is encrypted at rest and injected on next deployment.
View all variables:
"Show all env vars for my project"
The agent calls get-env and displays all configured variables.
Rollback on Failure
Prompt: "My app is broken after the last deploy. Roll back to the previous version."
The agent will:
- Call
rollbackto revert to the previous deployment - Call
get-statusto verify the rollback succeeded - Confirm the app is running on the previous version
Rollbacks are instant — they swap the container image without rebuilding.
Full Development Cycle
A single conversation with your AI agent can handle the entire workflow:
- Create project — "Create a new sota.io project called my-api"
- Deploy — "Deploy the current directory"
- Check status — "Is the deployment healthy?"
- Set env vars — "Set STRIPE_KEY to sk_live_..."
- Redeploy — "Deploy again to pick up the new env var"
- Check logs — "Show me the latest logs"
- Rollback — "Roll back to the previous version"
Each step is a single MCP tool call, executed natively by the AI agent.
Tips
- Project lookup is automatic — AI agents call
list-projectsfirst to find the correct project ID. You just say the project name. - Archives exclude junk —
deployautomatically excludesnode_modules,.git,.env, and.DS_Storefrom the upload. - Logs default to latest —
get-logsfetches the most recent deployment's logs unless you specify a deployment ID. - Framework auto-detection — sota.io detects Next.js, Node.js, and Python automatically. No configuration needed.
See Also
- MCP Setup — installation and IDE configuration
- Available Tools — complete tool reference
- npm package —
npx -y @sota-io/mcp - Source Code — contribute on GitHub