sota.io

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:

  1. Call create-project with name "my-api"
  2. Call deploy with the new project ID
  3. 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:

  1. Call list-projects to find your project
  2. Call get-status with the project ID
  3. 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:

  1. Call rollback to revert to the previous deployment
  2. Call get-status to verify the rollback succeeded
  3. 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:

  1. Create project"Create a new sota.io project called my-api"
  2. Deploy"Deploy the current directory"
  3. Check status"Is the deployment healthy?"
  4. Set env vars"Set STRIPE_KEY to sk_live_..."
  5. Redeploy"Deploy again to pick up the new env var"
  6. Check logs"Show me the latest logs"
  7. 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-projects first to find the correct project ID. You just say the project name.
  • Archives exclude junkdeploy automatically excludes node_modules, .git, .env, and .DS_Store from the upload.
  • Logs default to latestget-logs fetches 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