set-variables
Defines environment variables for active environments on Railway MCP Server. Specify workspace paths, key-value pairs, and optional parameters like service, environment, or deploy triggers.
Instructions
Set environment variables for the active environment
Input Schema
Name | Required | Description | Default |
---|---|---|---|
environment | No | The environment to set variables for (optional) | |
service | No | The service to set variables for (optional) | |
skipDeploys | No | Skip triggering deploys when setting variables (optional) | |
variables | Yes | Array of '{key}={value}' environment variable pairs to set | |
workspacePath | Yes | The path to the workspace to set variables in |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"environment": {
"description": "The environment to set variables for (optional)",
"type": "string"
},
"service": {
"description": "The service to set variables for (optional)",
"type": "string"
},
"skipDeploys": {
"description": "Skip triggering deploys when setting variables (optional)",
"type": "boolean"
},
"variables": {
"description": "Array of '{key}={value}' environment variable pairs to set",
"items": {
"type": "string"
},
"type": "array"
},
"workspacePath": {
"description": "The path to the workspace to set variables in",
"type": "string"
}
},
"required": [
"workspacePath",
"variables"
],
"type": "object"
}