Skip to the content
Vaubaan Gateway

Plugins / Railway

Railway 6.1.1

The Railway plugin lets a Vaubaan Gateway mission use Railway without handing the agent a credential. Deploy, redeploy, read logs and manage variables of Railway projects through the official Railway MCP server and GraphQL API.

Version 6.1.1 · 9 permissions · 4 macro-actions · 14 tools · 18 gateways run this plugin (over the last 90 days).

1 · The model

How Railway is modelled

1 plane, 10 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

1 exactly one, namedn a finite, known set* an unknown number, possibly all the resource carries the environment

Account

One account is one workspace token (or an account token) pasted by hand.

Resource

Every tool runs with it. One resource is one project.

Environment

Rule
The environment is the label the owner of the account puts on each resource. A permission tied to an environment is held once per label, and is refused on a resource that has no label or a label the permission does not list.
Known
stagingpreviewdevprod
Carried by
runtime.environment

Its owner labels each project with an environment (prod, staging, preview or dev); deploys and variable changes are held per label, and a project without a label can only be inspected.

2 · Macro-actions

What an agent does at Railway: 4 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

  1. 1

    Watch

    Projects, services, deployments and logs.

    Following what runs: the workspace's projects, then the services, deployments, statuses and logs of the mission's projects. Nothing is changed. Logs are a permission of their own because applications print secrets and personal data into them more often than they should.

    3 permissions

  2. 2

    Deploy

    Redeploy and apply staged changes.

    Redeploying a service or applying the changes staged on an environment. A bad deploy is undone by the next one, but on prod customers see it until then, so the permission is held per environment label.

    1 permission

  3. 3

    Configure

    Read and write variables.

    Reading and writing the environment variables of a project, where its production credentials live. Each permission is held per environment, so holding staging says nothing about prod. Replacing every variable at once is kept apart because whatever the payload leaves out is deleted.

    3 permissions

  4. 4

    Create

    Projects and Railway's agent.

    Creating a new Railway project and handing a free-text request to Railway's own agent. A project is created outside the mission's projects and can cost without limit. The agent decides alone what to change with the whole credential, so a mission must also hold the deploy and variable permissions it may use.

    2 permissions

3 · The map

The map

9 permissions of 4 macro-actions, in the four rows of the tree. For the chosen trust level and environment (railway[prod].…railway[dev].…railway[preview].…railway[staging].…), each cell gives yes, ask me or no, and the quota a day.

Trust level
Environment

yes runs freelyask me ask me firstno not included

Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out.Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3.Everything but irreversible actions runs freely; those ask first. Limits ×10.

A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

Railway permissions by macro-action and row of the tree, with what the chosen trust level does and the quota a day
RiskWatchProjects, services, deployments and logs.DeployRedeploy and apply staged changes.ConfigureRead and write variables.CreateProjects and Railway's agent.
Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

None

None

  • Replace every environment variable in bulk (replace=true) irreversibleWhy it sits here: DESTRUCTIVE : every variable absent from the payload is deleted. Detected from replace set on upsert-variables, from an empty or malformed variable payload, and on every railway-agent call. Any environment, prod or not. railway.bulk-variables-replace

    noask me · 15 a dayask me · 50 a day

None

Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

None

  • Redeploy a service or accept staged changes (deploy) costly to undoWhy it sits here: Reversible : a new deploy fixes a bad one, and Railway bills usage. On prod the deployed state is visible to customers until reverted, hence the per-env vector override. railway.deploy

    ask me · 20 a dayask me · 60 a dayyes · 200 a day

  • Create, modify or delete an environment variable costly to undoWhy it sits here: Scalar change of named variables (upsert or delete). Triggers an implicit redeploy unless skipDeploys is set. On prod a wrong value breaks the service immediately. railway.upsert-variable

    ask me · 20 a dayask me · 60 a dayyes · 200 a day

  • Create a new Railway project costly to undoWhy it sits here: Account-level write. Not reversible from the MCP surface (deleting a project needs the dashboard) and may generate unbounded cost. railway.create-project

    ask me · 5 a dayask me · 15 a dayyes · 50 a day

  • Invoke the Railway agent (conversational meta-tool) costly to undoWhy it sits here: The upstream agent decides alone what to mutate ; no fine classification is possible. Catch-all by construction : the classifier also emits the deployment, variable write and variable replace slices, so a mission must hold those permissions too. Explicit opt-in only. railway.agent-action

    ask me · 50 a dayask me · 150 a dayyes · 500 a day

Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

  • Read the account and the list of projects whole accountWhy it sits here: Account metadata only (whoami, list-projects). No secret is returned ; the blast radius is the whole workspace because the call is not scoped to a project. railway.read-account

    ask me · 1,000 a dayyes · 3,000 a dayyes · 10,000 a day

  • Redeploy a service or accept staged changes (deploy) moderate costWhy it sits here: Reversible : a new deploy fixes a bad one, and Railway bills usage. On prod the deployed state is visible to customers until reverted, hence the per-env vector override. railway.deploy

    ask me · 20 a dayyes · 60 a dayyes · 200 a dayask me · 20 a dayyes · 60 a dayyes · 200 a dayask me · 20 a dayyes · 60 a dayyes · 200 a day

  • Read environment variables (including secrets) secret dataWhy it sits here: Returns variable values in clear by default. The main exfiltration surface for production credentials, hence env-scoped : holding it on staging says nothing about prod. railway.read-variables

    ask me · 50 a dayyes · 150 a dayyes · 500 a dayask me · 50 a dayyes · 150 a dayyes · 500 a dayask me · 50 a dayyes · 150 a dayyes · 500 a dayask me · 50 a dayyes · 150 a dayyes · 500 a day

  • Create, modify or delete an environment variable secret dataWhy it sits here: Scalar change of named variables (upsert or delete). Triggers an implicit redeploy unless skipDeploys is set. On prod a wrong value breaks the service immediately. railway.upsert-variable

    ask me · 20 a dayyes · 60 a dayyes · 200 a dayask me · 20 a dayyes · 60 a dayyes · 200 a dayask me · 20 a dayyes · 60 a dayyes · 200 a day

None

Harmless

Runs freely at every level.

  • Read services, deployments and statusesWhy it sits here: Runtime metadata of a project (services, deployments, status). No secret payload. Broad by design : it co-matches every project-scoped read, so a more specific read permission (logs, variables) is required on top of it. railway.read-runtime

    yes · 2,000 a dayyes · 6,000 a dayyes · 20,000 a day

  • Read the logs of a deploymentWhy it sits here: Application logs often contain printed secrets (DSN, JWT, stack traces with PII). Classified data rather than secret because a well-run project does not log its secrets ; a strict creator leaves it out. railway.read-logs

    yes · 500 a dayyes · 1,500 a dayyes · 5,000 a day

None

None

None

Careful on prod: runs freely 2, ask me first 6, not included 1. Careful on dev: runs freely 2, ask me first 6, not included 1. Careful on preview: runs freely 2, ask me first 6, not included 1. Careful on staging: runs freely 2, ask me first 6, not included 1. Trusting on prod: runs freely 4, ask me first 5. Trusting on dev: runs freely 6, ask me first 3. Trusting on preview: runs freely 6, ask me first 3. Trusting on staging: runs freely 6, ask me first 3. Autonomous on prod: runs freely 8, ask me first 1. Autonomous on dev: runs freely 8, ask me first 1. Autonomous on preview: runs freely 8, ask me first 1. Autonomous on staging: runs freely 8, ask me first 1. Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

Held once per environment: Redeploy a service or accept staged changes (deploy); Read environment variables (including secrets); Create, modify or delete an environment variable. In another row on prod: Redeploy a service or accept staged changes (deploy); Create, modify or delete an environment variable.

4 · A few calls

A few calls, classified by the plugin

18 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. The 18 calls, as code.

The callThe plugin seesThe catalog answersA Careful mission
railway__whoami {}
  • railway.account[*].R
  • Read the account and the list of projects railway.read-account
ask me
railway__redeploy {"projectId":"00000000-0000-4000-8000-000000000001","environmentId":"00000000-0000-4000-8000-0000000000e1","serviceId":"00000000-0000-4000-8000-00000000000a"}
  • railway.project[00000000-0000-4000-8000-000000000001].environment[staging].service[00000000-0000-4000-8000-00000000000a].deployment.W
  • Redeploy a service or accept staged changes (deploy) railway.deploy
ask me
railway__upsert-variable {"projectId":"00000000-0000-4000-8000-000000000001","environmentId":"00000000-0000-4000-8000-0000000000e1","name":"API_KEY","value":"x"}
  • railway.project[00000000-0000-4000-8000-000000000001].environment[staging].service[*].service-var[API_KEY].W
  • Create, modify or delete an environment variable railway.upsert-variable
ask me
railway__create-project {"name":"new"}
  • railway.account[*].project.W
  • Create a new Railway project railway.create-project
ask me
railway__railway-agent {"projectId":"00000000-0000-4000-8000-000000000001","environmentId":"00000000-0000-4000-8000-0000000000e1","message":"scale the worker"}
  • railway.account[*].agent-session.W
  • railway.project[00000000-0000-4000-8000-000000000001].environment[staging].service[*].deployment.W
  • railway.project[00000000-0000-4000-8000-000000000001].environment[staging].service[*].service-var[*].W
  • railway.project[00000000-0000-4000-8000-000000000001].environment[staging].service[*].service-var-replace.W
  • Invoke the Railway agent (conversational meta-tool) railway.agent-action
  • Redeploy a service or accept staged changes (deploy) railway.deploy
  • Create, modify or delete an environment variable railway.upsert-variable
  • Replace every environment variable in bulk (replace=true) railway.bulk-variables-replace
no

5 · Anything else

Anything else

A call no permission covers touches railway.uncategorized-write instead of slipping through. No macro-action holds it; a person ticks it knowingly.

PermissionRiskCareful ×1Trusting ×3Autonomous ×10
Uncategorized Railway writeWhy it sits here: Catch-all for writes without a dedicated entry. Seen in production, it means a tool classifies to a slice no fine-grained entry covers : add the entry. railway.uncategorized-writeRepairable, at a price costly to undoask me · 50 a dayask me · 150 a dayyes · 500 a day

6 · Tools

Tools

14 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

14 tools · scroll the list

ToolWhat it doesUsually touches
railway__whoamiRead who the account israilway.read-account
railway__list-projectsList projectsrailway.read-account
railway__create-projectCreate a projectrailway.create-project
railway__list-servicesList services and environmentsrailway.read-runtime
railway__list-deploymentsList deploymentsrailway.read-runtime
railway__get-statusRead the deployment statusrailway.read-runtime
railway__get-logsRead logsrailway.read-runtime, railway.read-logs
railway__redeployRedeploy a servicerailway.deploy
railway__accept-deployCommit staged changes and deployrailway.deploy
railway__railway-agentAsk Railway's agent to actrailway.deploy, railway.upsert-variable, railway.bulk-variables-replace, railway.agent-action
railway__list-variablesList environment variablesrailway.read-runtime, railway.read-variables
railway__upsert-variableSet an environment variablerailway.upsert-variable
railway__upsert-variablesSet several environment variablesrailway.upsert-variable, railway.bulk-variables-replace
railway__delete-variableDelete an environment variablerailway.upsert-variable

7 · Connecting an account

Connecting an account

1 of 3 · a key you create and paste workspace token

A workspace token the person creates at Railway and pastes once; nobody declares anything beforehand.

Workspace

The workspace to connect: a workspace token reaches that workspace only, with everything it allows. Railway tokens carry no permission choice: this gateway gives an agent only the projects and permissions its mission names.

  1. Sign in to Railway as the account the agents will act as; a shared service account that is a member of the workspace is fine.
  2. Account settingsTokensOpen the page and create a token with the workspace selected: a workspace token reaches that workspace only. (open)
  3. No workspaceChoose No workspace instead only for an account token over every workspace of the account; a project token is not accepted: it reaches one environment of one project.
  4. Copy the token and paste it here. Railway shows it once.
Where
https://railway.com/account/tokens
Expiry
Railway tokens do not expire: delete the token under Account settings, Tokens to end this account.
The connect page asks
Workspace token (secret)
The service's documentation
https://docs.railway.com/integrations/api
Disconnecting
Delete the token in Railway, signed in as the account that created it: Account settings, Tokens.

8 · Health

Health

18 gateways run this plugin (over the last 90 days).

VersionGatewaysCallsSuccessValidated
6.1.02no call yet—
6.0.07no call yet—
5.1.15no call yet—
5.1.05no call yet—

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly (what they mean). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

Last changed 2026-12-02. This page as Markdown: /plugins/railway.md