MCP Tools
The @sota-io/mcp (source) server exposes 15 tools for deploying and managing web applications, plus the prompt enterprise-app-checklist. AI agents invoke these tools automatically based on natural language prompts. The server also sends instructions on connect that tell the agent to call get-account before it builds anything.
Overview
| Tool | Description | Parameters |
|---|---|---|
get-account | Plan limits, Enterprise facts and the build contract | (none) |
deploy | Deploy an app from inline files, a directory or a git repository and wait for the result | project_id, files?, directory?, git_url?, git_branch?, wait?, max_wait_seconds? |
redeploy | Start the running image again with the current environment variables | project_id, wait?, max_wait_seconds? |
get-logs | Get the build and deploy log | project_id, deployment_id? |
set-env | Set environment variable | project_id, key, value |
get-env | List environment variables (values masked) | project_id, key?, reveal?, include_managed? |
rollback | Rollback to previous deployment | project_id |
get-status | Get deployment status and history, optionally wait until it finished | project_id, wait_for?, deployment_id?, max_wait_seconds? |
list-projects | List all projects | (none) |
create-project | Create a new project | name |
delete-project | Delete a project permanently | project_id |
add-domain | Add a custom domain with DNS instructions | project_id, domain |
list-domains | List all custom domains | project_id |
get-domain | Get domain details with DNS instructions | project_id, domain_id |
remove-domain | Remove a custom domain | project_id, domain_id |
get-account
Read-only. Returns the signed-in account: plan, limits (projects, databases, memory per app, upload size) and, on a sota Enterprise account, the company label, the app address https://<app>.<label>.sota.io, the app count, the status of the sign-in connection and the link to Users & access. It also returns the build contract every app must follow and, for Enterprise, the identity and access rules: the same text as Build an app with your AI agent.
No parameters required.
Example prompt: "Which sota account am I connected to, and what must my app do to run there?"
deploy
Deploy an application to sota.io. The local server (npx @sota-io/mcp) packs inline files, a public git_url or a local directory; the hosted connector (mcp.sota.io) takes inline files only (at most 200 files, 10 MB). A directory or git deploy honours a .sotaignore in the root, or the .gitignore when there is no .sotaignore, with the same rules as the CLI. .git, node_modules, .DS_Store and local .env files are always left out.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID to deploy to |
files | object | No | Map of relative paths to file content: a string for text, { "content": "<base64>", "encoding": "base64" } for a binary file such as a PNG. At most 200 files and 10 MB, counted after decoding; invalid base64 is refused with the file's path |
directory | string | No | Local directory (local server only; defaults to the current directory) |
git_url | string | No | Public git repository (local server only) |
git_branch | string | No | Branch for git_url |
wait | boolean | No | Wait for the result (default true) |
max_wait_seconds | number | No | Upper bound of the wait, from the start of the call (default 40, at most 50) |
Example prompt: "Deploy my app in the current directory to sota.io"
After the upload the tool waits on the server until the deployment is running or failed, at most 40 seconds by default (50 at most, so the call stays inside the usual 60-second client limit; clients that ask for progress notifications get one every few seconds). A longer build returns "not finished" with retry_after_seconds; the agent then calls get-status with wait_for: "finished" once instead of polling. A failed deploy names the reason, for a failed health check the HTTP status the app answered on /health or /, or that nothing answered (connection refused, timeout, container exited). On an Enterprise account the result also lists what the owner must do before anyone can open the app.
redeploy
Start the image of the running deployment again with the project's current environment variables, without a new build: the way to apply set-env. Blue-green like a deploy: the previous container keeps serving until the new one passes the health gate; an Enterprise app stays on its own server behind the sign-in. Needs a running deployment.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID |
wait | boolean | No | Wait for the result (default true); false returns after the API accepted it |
max_wait_seconds | number | No | Upper bound of the wait (default 40, at most 50) |
Example prompt: "I changed STRIPE_KEY, restart my app with it"
The sota API answers a redeploy when it has finished, typically after 10 to 30 seconds. If that takes longer than the wait, the redeploy continues on the server and the result points to get-status with wait_for: "finished".
get-logs
Get the build and deploy log of a deployment. Logs of the running app are not available yet. If no deployment_id is provided, returns the log of the latest deployment.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID to get logs for |
deployment_id | string | No | Specific deployment ID (defaults to latest) |
Example prompt: "Show me the build logs for my last sota.io deployment"
set-env
Set an environment variable for a project. The variable is encrypted at rest and injected into the container on the next deployment: call redeploy (no build) or deploy to apply it. It is not available at build time.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID |
key | string | Yes | Environment variable name (e.g., API_SECRET; DATABASE_URL and PORT are set by sota) |
value | string | Yes | Environment variable value |
Example prompt: "Set API_SECRET on my project"
get-env
List the environment variables of a project with masked values: the first 4 characters of values with at least 20 characters, and the length (for example API_KEY=sk_l… (51 chars)). The variables sota manages for the database (DATABASE_URL, PG*) are marked managed and show only their length. One value is shown in clear only for a single key with reveal: true; a managed database value (it holds the database password) also needs include_managed: true, which the agent uses only when you explicitly ask for that value. The tool tells the agent not to reveal secrets into the conversation unless the user asks for that value. Masking keeps secrets out of the conversation; it is not access control: whoever holds the connection or API key can read every value. (Changed in 1.8.0: before, every value came back in clear.)
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID |
key | string | No | Only this variable |
reveal | boolean | No | With key: return that value in clear |
include_managed | boolean | No | With reveal: also for a managed database value |
Example prompt: "Which environment variables are set on my project?"
rollback
Rollback a project to its previous deployment. This swaps the container image without rebuilding — instant rollback.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID to rollback |
Example prompt: "Roll back my app to the previous version"
get-status
Get the current deployment status for a project, including the live host, the reason of a failed deployment (for a failed health check the HTTP status the app answered, or that nothing answered) and recent deployment history. With wait_for: "finished" it waits on the server until the deployment is running, failed or stopped, at most max_wait_seconds (default 40, at most 50), and when it returns early it says so with retry_after_seconds.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID to check status for |
wait_for | "finished" | No | Wait until the deployment has finished |
deployment_id | string | No | Deployment to watch (defaults to the newest) |
max_wait_seconds | number | No | Upper bound of the wait (default 40, at most 50) |
Example prompt: "What's the status of my sota.io deployment?"
Returns current deployment info (ID, status, URL, framework) and up to 4 recent deployments.
list-projects
List all projects on your sota.io account.
No parameters required.
Example prompt: "List my sota.io projects"
Returns project names, slugs, and IDs.
create-project
Create a new project on sota.io. The project slug is generated from the name and used as the subdomain (<slug>.sota.io). On a sota Enterprise account a project named app gets the slug <label>-app and the address https://app.<label>.sota.io behind the company sign-in, and the result lists the owner's next steps.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name for the new project |
Example prompt: "Create a new sota.io project called my-api"
delete-project
Delete a project and all its deployments from sota.io. This action is permanent and cannot be undone.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID to delete |
Example prompt: "Delete my sota.io project abc123"
add-domain
Add a custom domain to a project. Returns DNS instructions for configuring at your registrar. Supports apex domains (A record to 23.88.45.28) and subdomains (CNAME to {slug}.sota.io). SSL is automatically provisioned via Let's Encrypt after DNS verification.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID to add the domain to |
domain | string | Yes | Domain name (e.g., app.example.com or example.com) |
Example prompt: "Add app.example.com as a custom domain to my sota.io project"
Returns the domain info (ID, status) and DNS setup instructions (record type, name, value).
list-domains
List all custom domains for a project with their statuses (pending, verified, active).
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID to list domains for |
Example prompt: "Show all custom domains on my sota.io project"
Returns domain names, statuses, and IDs. Use get-domain with a domain ID for full details.
get-domain
Get details of a custom domain including its current status and DNS setup instructions. Domain statuses: pending (DNS not yet configured), verified (DNS confirmed, SSL provisioning), active (live with HTTPS).
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID |
domain_id | string | Yes | Domain ID (use list-domains to find the ID) |
Example prompt: "Check the status of my custom domain on sota.io"
remove-domain
Remove a custom domain from a project. This removes the domain mapping and its SSL certificate. DNS records at your registrar are not automatically removed -- clean those up manually. This action is immediate and irreversible.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Project ID |
domain_id | string | Yes | Domain ID (use list-domains to find the ID) |
Example prompt: "Remove the custom domain from my project"
Prompt: enterprise-app-checklist
A static prompt with the full checklist from Build an app with your AI agent. Clients that show MCP prompts (for example as a slash command) can add it to the conversation before the agent starts building.
Not available through MCP
These need the owner's dashboard sign-in. API keys and MCP connections are refused on purpose, so a leaked key or a misled agent cannot do them:
- Approving or blocking people and changing which apps they may open (Users & access).
- Setting up or changing the Microsoft 365 sign-in connection.
- Creating or revoking API keys.
- Changing billing.
Return Values
All tools return text content with structured information. On success, you get the relevant data (deployment ID, project info, logs, etc.). On failure, tools return a descriptive error message.
Error Handling
Common errors and their causes:
| Error | Cause | Fix |
|---|---|---|
SOTA_API_KEY environment variable is required | API key not configured | Add env block to MCP config |
Project not found | Invalid project ID | Use list-projects to find correct ID |
Unauthorized | Invalid or expired API key | Create a new key at Dashboard Settings |
See Also
- MCP Setup — installation and IDE configuration
- Example Workflows — real-world usage patterns
- Source Code — open source on GitHub