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

ToolDescriptionParameters
get-accountPlan limits, Enterprise facts and the build contract(none)
deployDeploy an app from inline files, a directory or a git repository and wait for the resultproject_id, files?, directory?, git_url?, git_branch?, wait?, max_wait_seconds?
redeployStart the running image again with the current environment variablesproject_id, wait?, max_wait_seconds?
get-logsGet the build and deploy logproject_id, deployment_id?
set-envSet environment variableproject_id, key, value
get-envList environment variables (values masked)project_id, key?, reveal?, include_managed?
rollbackRollback to previous deploymentproject_id
get-statusGet deployment status and history, optionally wait until it finishedproject_id, wait_for?, deployment_id?, max_wait_seconds?
list-projectsList all projects(none)
create-projectCreate a new projectname
delete-projectDelete a project permanentlyproject_id
add-domainAdd a custom domain with DNS instructionsproject_id, domain
list-domainsList all custom domainsproject_id
get-domainGet domain details with DNS instructionsproject_id, domain_id
remove-domainRemove a custom domainproject_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.

ParameterTypeRequiredDescription
project_idstringYesProject ID to deploy to
filesobjectNoMap 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
directorystringNoLocal directory (local server only; defaults to the current directory)
git_urlstringNoPublic git repository (local server only)
git_branchstringNoBranch for git_url
waitbooleanNoWait for the result (default true)
max_wait_secondsnumberNoUpper 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.

ParameterTypeRequiredDescription
project_idstringYesProject ID
waitbooleanNoWait for the result (default true); false returns after the API accepted it
max_wait_secondsnumberNoUpper 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.

ParameterTypeRequiredDescription
project_idstringYesProject ID to get logs for
deployment_idstringNoSpecific 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.

ParameterTypeRequiredDescription
project_idstringYesProject ID
keystringYesEnvironment variable name (e.g., API_SECRET; DATABASE_URL and PORT are set by sota)
valuestringYesEnvironment 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.)

ParameterTypeRequiredDescription
project_idstringYesProject ID
keystringNoOnly this variable
revealbooleanNoWith key: return that value in clear
include_managedbooleanNoWith 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.

ParameterTypeRequiredDescription
project_idstringYesProject 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.

ParameterTypeRequiredDescription
project_idstringYesProject ID to check status for
wait_for"finished"NoWait until the deployment has finished
deployment_idstringNoDeployment to watch (defaults to the newest)
max_wait_secondsnumberNoUpper 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.

ParameterTypeRequiredDescription
namestringYesName 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.

ParameterTypeRequiredDescription
project_idstringYesProject 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.

ParameterTypeRequiredDescription
project_idstringYesProject ID to add the domain to
domainstringYesDomain 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).

ParameterTypeRequiredDescription
project_idstringYesProject 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).

ParameterTypeRequiredDescription
project_idstringYesProject ID
domain_idstringYesDomain 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.

ParameterTypeRequiredDescription
project_idstringYesProject ID
domain_idstringYesDomain 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:

ErrorCauseFix
SOTA_API_KEY environment variable is requiredAPI key not configuredAdd env block to MCP config
Project not foundInvalid project IDUse list-projects to find correct ID
UnauthorizedInvalid or expired API keyCreate a new key at Dashboard Settings

See Also