mcp

v0.7.0
@velixir/mcp Checked 9 hours ago Published 27 days ago

Deploy 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.

ParameterTypeDescription
directory *stringAbsolute path to the app's source directory to deploy (the folder that contains its package.json / requirements.txt / go.mod / etc).
languagestringPrimary 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…
namestringA short name for the app; becomes part of the URL. Letters and numbers work best.
portintegerThe 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.

ParameterTypeDescription
app_idstringThe app's ID, for an app the user owns. Requires VELIXIR_API_KEY.
deployment_idstringThe deployment ID returned by the `deploy` tool (unclaimed apps, no account needed).
releasestringWith app_id: which release's build log, as a version ("v12" or "12") or a release ID. Defaults to the newest.
tailintegerHow 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.

ParameterTypeDescription
app_idstringThe app's ID, for an app the user owns. Requires VELIXIR_API_KEY.
deployment_idstringThe deployment ID returned by the `deploy` tool (unclaimed apps, no account needed).
limitintegerHow many requests to return (default 50, max 200).
methodstringFilter: HTTP method, e.g. POST.
pathstringFilter: only paths containing this text (case-insensitive).
since_minutesintegerOnly requests from the last N minutes.
statusstringFilter: 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.

ParameterTypeDescription
app_id *stringThe app's ID.
at *stringThe moment, ISO 8601 (e.g. 2026-10-16T09:41:00Z).
cachesbooleanBring back caches (nearest snapshot). Default true.
codebooleanBring back the code (the release live then). Default true.
configbooleanBring back env vars and settings from then. Default true.
databasesbooleanBring back databases (exact to the second). Default true.
excludearrayDatabase or cache instance IDs to leave as they are.
volumebooleanBring 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).

ParameterTypeDescription
app_id *stringThe app's ID.
at *stringThe moment, ISO 8601.
cachesbooleanBring back caches (nearest snapshot). Default true.
codebooleanBring back the code (the release live then). Default true.
configbooleanBring back env vars and settings from then. Default true.
databasesbooleanBring back databases (exact to the second). Default true.
excludearrayDatabase or cache instance IDs to leave as they are.
volumebooleanBring 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…

ParameterTypeDescription
rewind_id *stringThe 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.

ParameterTypeDescription
rewind_id *stringThe 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.

ParameterTypeDescription
rewind_id *stringThe 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.

ParameterTypeDescription
app_id *stringThe app's ID.
atstringThe moment, ISO 8601. Default now.
cachesbooleanBring back caches (nearest snapshot). Default true.
codebooleanBring back the code (the release live then). Default true.
configbooleanBring back env vars and settings from then. Default true.
databasesbooleanBring back databases (exact to the second). Default true.
excludearrayDatabase or cache instance IDs to leave as they are.
seal_outboundbooleanBlock internet access from the copy (it has the original's live keys). Default true.
volumebooleanBring 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.

ParameterTypeDescription
fork_id *stringThe 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.

ParameterTypeDescription
fork_id *stringThe 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.

ParameterTypeDescription
app_id *stringThe 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.

ParameterTypeDescription
app_id *stringThe app's ID.
name *stringThe worker's name, as declared in the Procfile or velixir.json.
replicas *integerHow many copies to run; 0 stops it.
planstringA 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.

ParameterTypeDescription
app_id *stringThe app's ID.
name *stringThe 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.

ParameterTypeDescription
app_id *stringThe app's ID.
name *stringThe cron job's name.
limitintegerHow 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.

ParameterTypeDescription
approval_id *stringThe 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.

ParameterTypeDescription
app_id *stringThe app's ID.
release_id *stringA built release of the app that isn't live yet.
max_requestsintegerDistinct requests to replay (10 to 1000, default 300).
window_hoursintegerHow 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.

ParameterTypeDescription
replay_id *stringThe 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.

ParameterTypeDescription
url *stringA public https:// URL (private and local addresses are refused).
app_idstringOnly send events about this app.
descriptionstringA short note to tell endpoints apart.
eventsarrayEvent types to send, e.g. ["deploy.succeeded","deploy.failed","build.failed"]. Leave out for every event. Full list: GET /api/v1/webhooks/events.
formatstringDefault 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.

ParameterTypeDescription
webhook_id *stringThe 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.

ParameterTypeDescription
type *stringWhere to send.
app_idstringOnly this app's logs. Default: every app in the team.
datasetstringAxiom dataset.
headersobjectExtra request headers for otlp/http, e.g. {"Authorization": "Basic ..."}.
namestringA label, e.g. "Grafana production".
sitestringDatadog site, e.g. datadoghq.com or datadoghq.eu.
tokenstringAPI key or token (datadog, axiom, betterstack; optional bearer token for otlp/http).
urlstringhttps endpoint (otlp, http, betterstack; optional for axiom).