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.
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.
Account One account is one workspace token (or an account token) pasted by hand.
Plane · runtimeRailway runtime plane — deployment, configuration and account surface. One resource is one Railway project ; its owner labels the environment.
railway__railway-agent meta-tool. Opaque : the upstream agent may mutate anything in the graph from a natural-language prompt, so the classifier emits pessimistic write slices next to agent-session.W.prod, staging…), not the Railway-native environment name.serviceId ; some (list-services, get-status) span all services.serviceId null / non-null ; one entity here). unbounded appears when the written names are unknown (upsert-variables with replace or an empty payload, the agent).service-var-replace *service-var-replace: Virtual marker, not a Railway object : written when a call replaces every variable of its scope, deleting those absent from the payload. Only the destructive bulk-variables-replace risk matches it.deploymentId in get-logs ; one deployment per service.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
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
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
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
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.
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.
| Risk | WatchProjects, 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 |
| None |
| Repairable, at a price Careful, Trusting: ask me. Autonomous: runs freely. | None |
|
|
|
| Worth a look Careful: ask me. Trusting, Autonomous: runs freely. |
|
|
| None |
| Harmless Runs freely at every level. |
| 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 call | The plugin sees | The catalog answers | A Careful mission |
|---|---|---|---|
railway__ |
|
| ask me |
railway__ |
|
| ask me |
railway__ |
|
| ask me |
railway__ |
|
| ask me |
railway__ |
|
| no |
5 · Anything else
Anything else
A call no permission covers touches railway. instead of slipping through. No macro-action holds it; a person ticks it knowingly.
| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×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-write | Repairable, at a price costly to undo | ask me · 50 a day | ask me · 150 a day | yes · 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
| Tool | What it does | Usually touches |
|---|---|---|
railway__ | Read who the account is | railway. |
railway__ | List projects | railway. |
railway__ | Create a project | railway. |
railway__ | List services and environments | railway. |
railway__ | List deployments | railway. |
railway__ | Read the deployment status | railway. |
railway__ | Read logs | railway., railway. |
railway__ | Redeploy a service | railway. |
railway__ | Commit staged changes and deploy | railway. |
railway__ | Ask Railway's agent to act | railway., railway., railway., railway. |
railway__ | List environment variables | railway., railway. |
railway__ | Set an environment variable | railway. |
railway__ | Set several environment variables | railway., railway. |
railway__ | Delete an environment variable | railway. |
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.
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.
- 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.
- Account settingsTokensOpen the page and create a token with the workspace selected: a workspace token reaches that workspace only. (open)
- 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.
- 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).
| Version | Gateways | Calls | Success | Validated |
|---|---|---|---|---|
6. | 2 | no call yet | — | |
6. | 7 | no call yet | — | |
5. | 5 | no call yet | — | |
5. | 5 | no 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.
9 · Links
Links
Last changed 2026-12-02. This page as Markdown: /plugins/railway.md