mcp
v0.7.0Deploy web apps in any language to Velixir (the European cloud) straight from your AI agent: point deploy at a directory for a live URL and claim link, then…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
deploy
Deploy a web app in ANY language (Node, Python, Go, Ruby, PHP, Java, Elixir, Rust, .NET, and more) to Velixir, the European cloud. Packs the given source directory, builds it with no Dockerfile, and runs it in the EU. Returns a live URL plus a claim link the human opens to keep the app on a free, card-free account. No Velixir account is needed to deploy. Use this when the user wants to publish, host, or deploy an app you generated.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Absolute path to the app's source directory to deploy (the folder that contains its package.json / requirements.txt / go.mod / etc). |
language | string | Primary language (node, python, go, ruby, php, java, elixir, rust, dotnet, deno, fsharp). Detected from the project files (package.json, go.mod, *.csproj and so on) if omitted; pass it when the folder… |
name | string | A short name for the app; becomes part of the URL. Letters and numbers work best. |
port | integer | The port the app listens on. Only needed if the app hard-codes a port instead of reading the PORT environment variable. Leave unset and have the app read PORT (default 8080). |
logs
Fetch build and runtime logs for an app on Velixir. Use this to debug: if the build failed you get why (a diagnosis when it's a known failure, and the failing part of the build log); if it built but isn't responding you get the container's recent output. For an app you deployed with the `deploy` tool, pass its deployment_id (no account needed). For an app the user owns, pass app_id (and optionally release, e.g. "v12"); that needs a VELIXIR_API_KEY in the MCP server's environment.
| Parameter | Type | Description |
|---|---|---|
app_id | string | The app's ID, for an app the user owns. Requires VELIXIR_API_KEY. |
deployment_id | string | The deployment ID returned by the `deploy` tool (unclaimed apps, no account needed). |
release | string | With app_id: which release's build log, as a version ("v12" or "12") or a release ID. Defaults to the newest. |
tail | integer | How many recent log lines to fetch (default 200, max 1000). |
access_logs
Read the HTTP access logs for an app on Velixir: one line per request it served (time, status, method, path, duration, size, visitor IP), newest first, with a summary of status codes. Use this to see whether the app is getting traffic and to debug failing requests (filter with status: "5xx" or "errors"). For an app you deployed with the `deploy` tool, pass its deployment_id (works until the user claims it). For an app the user owns, pass app_id; that needs a VELIXIR_API_KEY in the MCP server's environment.
| Parameter | Type | Description |
|---|---|---|
app_id | string | The app's ID, for an app the user owns. Requires VELIXIR_API_KEY. |
deployment_id | string | The deployment ID returned by the `deploy` tool (unclaimed apps, no account needed). |
limit | integer | How many requests to return (default 50, max 200). |
method | string | Filter: HTTP method, e.g. POST. |
path | string | Filter: only paths containing this text (case-insensitive). |
since_minutes | integer | Only requests from the last N minutes. |
status | string | Filter: 2xx, 3xx, 4xx, 5xx, errors (4xx and 5xx), or an exact code like 404. |
rewind_plan
Preview what Rewind would restore if this app went back to a moment: the release and config live then, and for each database (exact to the second), cache and file volume (nearest earlier snapshot) what it would come back as. Changes nothing. Use it before `rewind`, and leave parts out (e.g. only code and config, or code plus files) when only some of the app went wrong.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
at * | string | The moment, ISO 8601 (e.g. 2026-10-16T09:41:00Z). |
caches | boolean | Bring back caches (nearest snapshot). Default true. |
code | boolean | Bring back the code (the release live then). Default true. |
config | boolean | Bring back env vars and settings from then. Default true. |
databases | boolean | Bring back databases (exact to the second). Default true. |
exclude | array | Database or cache instance IDs to leave as they are. |
volume | boolean | Bring back files (nearest snapshot). Default true. |
rewind
Start a Rewind: builds a sealed preview copy of the app as it was at a moment (the parts in scope), on its own URL, without touching the live app. Poll with `fork_status`, check the preview, then ask the user before calling `rewind_apply`. Takes minutes (databases replay to the exact second).
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
at * | string | The moment, ISO 8601. |
caches | boolean | Bring back caches (nearest snapshot). Default true. |
code | boolean | Bring back the code (the release live then). Default true. |
config | boolean | Bring back env vars and settings from then. Default true. |
databases | boolean | Bring back databases (exact to the second). Default true. |
exclude | array | Database or cache instance IDs to leave as they are. |
volume | boolean | Bring back files (nearest snapshot). Default true. |
rewind_apply
Make a ready Rewind preview live. Workers and cron jobs pause, the app is pointed at the restored data copies, files are restored after a snapshot of the current ones, and the release and config from then are deployed. Anything written to the preview's data while it was being checked becomes live data too. The original databases and caches are set aside, untouched, with everything written since that moment: they keep running (and billing) for a few days so it can be undone, then they're deleted (databases keep their backups). A database or cache with external access gets a new external address…
| Parameter | Type | Description |
|---|---|---|
rewind_id * | string | The ID returned by `rewind`. |
rewind_undo
Undo an applied Rewind: the app goes back to the data, release, config and files it had just before. Also repairs a rewind whose apply didn't finish (fork_status says Failed and that the apply didn't finish). Refused once the data the rewind set aside has been deleted. Ask the user first.
| Parameter | Type | Description |
|---|---|---|
rewind_id * | string | The rewind's ID. |
rewind_delete_set_aside
Delete the original databases and caches an applied Rewind set aside, now instead of when they expire, to stop paying for them. Databases keep their backups (restorable from Recently deleted), but the rewind can NEVER be undone afterwards. ONLY call this after the user has explicitly confirmed. Agent keys need a person's approval.
| Parameter | Type | Description |
|---|---|---|
rewind_id * | string | The applied rewind's ID. |
fork
Fork an app as it was at a moment (default: now) into a separate app with its own copies of the data, sealed from the internet by default. Use it to reproduce a bug against real data, or to give yourself a safe copy of production to work on. Discard it with `fork_discard` when done; it bills like any app while it runs.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
at | string | The moment, ISO 8601. Default now. |
caches | boolean | Bring back caches (nearest snapshot). Default true. |
code | boolean | Bring back the code (the release live then). Default true. |
config | boolean | Bring back env vars and settings from then. Default true. |
databases | boolean | Bring back databases (exact to the second). Default true. |
exclude | array | Database or cache instance IDs to leave as they are. |
seal_outbound | boolean | Block internet access from the copy (it has the original's live keys). Default true. |
volume | boolean | Bring back files (nearest snapshot). Default true. |
fork_status
Progress of a fork, Rewind preview or Replay copy: status, current step, log, and the copy's URL once ready.
| Parameter | Type | Description |
|---|---|---|
fork_id * | string | The fork or rewind ID. |
fork_discard
Delete a fork (or an unapplied or undone Rewind) and the database and cache copies it made. Refused while the live app uses any of those copies (an applied rewind, or one whose apply didn't finish: undo it first). Rewind previews nobody applies are discarded automatically after a few days.
| Parameter | Type | Description |
|---|---|---|
fork_id * | string | The fork ID. |
list_processes
List an app's processes: the web process, workers (with replicas and size), cron jobs (schedule, paused, last run) and the release command (last outcome). Workers, cron jobs and the release command are declared in the app's source: a Procfile (every line other than web is a worker; `release:` is the release command) or velixir.json (`processes`, `cron`, `release`). To add one, edit those files and deploy.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
scale_worker
Set a worker's replica count (0 stops it and its billing) and optionally its size. Billed hourly at replicas x plan, like web replicas.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
name * | string | The worker's name, as declared in the Procfile or velixir.json. |
replicas * | integer | How many copies to run; 0 stops it. |
plan | string | A plan name (e.g. Starter, Pro), or "app" to use the app's own plan. |
run_cron_now
Start one of an app's cron jobs now, outside its schedule. Refused while a run is already going. Check the outcome with `cron_runs` after it finishes.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
name * | string | The cron job's name. |
cron_runs
A cron job's recent runs, newest first: status, duration, exit code, failure reason and the last lines of output. Use it to debug a failing scheduled job.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
name * | string | The cron job's name. |
limit | integer | How many runs (1 to 100, default 5). |
approval_status
Check a request that was waiting for the user's approval (agent keys can't delete or overwrite anything on their own): pending, approved (it ran), denied, expired or failed.
| Parameter | Type | Description |
|---|---|---|
approval_id * | string | The approvalId from the earlier response. |
replay_release
Test a built release against the app's real recent traffic before it goes live. Velixir makes two sealed copies of the app from the same moment (one on the live release, one on this release, each with its own data and no internet), replays recent GET/HEAD requests against both, and reports new errors, status changes, changed responses and slower routes, ignoring values that change on every request. Takes several minutes; poll `replay_status`. Use it after deploying a release to a non-live slot, and fix anything it finds before promoting.
| Parameter | Type | Description |
|---|---|---|
app_id * | string | The app's ID. |
release_id * | string | A built release of the app that isn't live yet. |
max_requests | integer | Distinct requests to replay (10 to 1000, default 300). |
window_hours | integer | How far back to read traffic (1 to 168, default 24). |
replay_status
A replay's progress and, once done, its verdict (clean, review or regressions) with each finding: the route, an example request and what changed.
| Parameter | Type | Description |
|---|---|---|
replay_id * | string | The replay ID. |
list_webhooks
List the team's outgoing webhook endpoints: where velixir posts events such as deploy.succeeded, deploy.failed, build.failed and approval.requested, in which format (signed JSON or Slack), and whether each is switched on.
list_log_drains
List the team's log drains: where the runtime logs (stdout/stderr) of its apps are sent (OpenTelemetry/OTLP, Datadog, Axiom, Better Stack or an HTTPS endpoint), with each drain's state. Secrets are never returned.
create_webhook
Add an outgoing webhook endpoint so the user's own systems (or a Slack channel) hear about events as they happen. Use format "slack" with a Slack incoming-webhook URL for chat messages; "json" (default) sends signed JSON per the Standard Webhooks spec and returns a signing secret that is shown ONCE: hand it to the user to store, and don't log it elsewhere. Then call test_webhook.
| Parameter | Type | Description |
|---|---|---|
url * | string | A public https:// URL (private and local addresses are refused). |
app_id | string | Only send events about this app. |
description | string | A short note to tell endpoints apart. |
events | array | Event types to send, e.g. ["deploy.succeeded","deploy.failed","build.failed"]. Leave out for every event. Full list: GET /api/v1/webhooks/events. |
format | string | Default json. |
test_webhook
Send a webhook.test event to an endpoint now and report how it answered (status code, time, error). Use it after create_webhook, or to check a receiver after fixing it.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | The endpoint's ID (from list_webhooks or create_webhook). |
create_log_drain
Send the team's app runtime logs to a logging tool, a few seconds after each line is written. Free on every plan. Types: "otlp" (url = OTLP/HTTP endpoint, e.g. Grafana Cloud's https://otlp-gateway-<region>.grafana.net/otlp; auth via headers or token), "datadog" (token = API key, site e.g. datadoghq.eu), "axiom" (dataset + token), "betterstack" (url = https://<ingesting host>, token = source token), "http" (url receives NDJSON). Ask the user for the key; never invent one. After creating, the drain is tested automatically and the result is reported.
| Parameter | Type | Description |
|---|---|---|
type * | string | Where to send. |
app_id | string | Only this app's logs. Default: every app in the team. |
dataset | string | Axiom dataset. |
headers | object | Extra request headers for otlp/http, e.g. {"Authorization": "Basic ..."}. |
name | string | A label, e.g. "Grafana production". |
site | string | Datadog site, e.g. datadoghq.com or datadoghq.eu. |
token | string | API key or token (datadog, axiom, betterstack; optional bearer token for otlp/http). |
url | string | https endpoint (otlp, http, betterstack; optional for axiom). |