{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6c76b178-d897-497c-9fc8-aaaa903910c0",
    "slug": "deploy-claude-code-with-mcp-servers",
    "name": "Claude Code MCP",
    "description": "Run Claude Code with MCP servers on an always-on Ubuntu box",
    "url": "https://railway.com/deploy/deploy-claude-code-with-mcp-servers",
    "upstream": {
      "image": "ghcr.io/onepush-dev/ubuntu-claude-code:26.04-claude2.1.314"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Ubuntu",
      "source": {
        "image": "ghcr.io/onepush-dev/ubuntu-claude-code:26.04-claude2.1.314"
      },
      "needs_volume": true,
      "volume_mount_path": "/home",
      "tcp_ports": [
        2222
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Ubuntu",
      "description": "Container timezone.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Ubuntu",
      "description": "Port of the ttyd web terminal behind the public domain (7681).",
      "secret": false,
      "strategy": "default",
      "default": "7681"
    },
    {
      "key": "SSH_PORT",
      "service": "Ubuntu",
      "description": "Port sshd listens on; Railway's TCP proxy forwards to it (2222).",
      "secret": false,
      "strategy": "default",
      "default": "2222"
    },
    {
      "key": "TMUX_SESSION",
      "service": "Ubuntu",
      "description": "Name of the tmux session shared by browser and SSH, where Claude Code keeps running.",
      "secret": false,
      "strategy": "default",
      "default": "main"
    },
    {
      "key": "SUDO_NOPASSWD",
      "service": "Ubuntu",
      "description": "Let the terminal user run sudo without a password.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TERMINAL_USER",
      "service": "Ubuntu",
      "description": "Linux user for browser and SSH logins (default ubuntu).",
      "secret": false,
      "strategy": "default",
      "default": "ubuntu"
    },
    {
      "key": "TERMINAL_TITLE",
      "service": "Ubuntu",
      "description": "Browser tab title of the web terminal.",
      "secret": false,
      "strategy": "default",
      "default": "Ubuntu + Claude Code"
    },
    {
      "key": "TTYD_FONT_SIZE",
      "service": "Ubuntu",
      "description": "Font size of the browser terminal.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "TMUX_AUTO_ATTACH",
      "service": "Ubuntu",
      "description": "Attach interactive SSH logins to the shared tmux session.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TTYD_MAX_CLIENTS",
      "service": "Ubuntu",
      "description": "Max simultaneous browser clients (0 = unlimited).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SSH_PASSWORD_AUTH",
      "service": "Ubuntu",
      "description": "Allow SSH password logins; set false for key-only SSH.",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TERMINAL_PASSWORD",
      "service": "Ubuntu",
      "description": "Login password for the web terminal and SSH, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-claude-code-with-mcp-servers"
      }
    },
    "cli": "railway deploy --template deploy-claude-code-with-mcp-servers",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6c76b178-d897-497c-9fc8-aaaa903910c0",
            "serializedConfig": {
              "services": {
                "a0717ba6-92d0-41f2-9377-e93688b1a38b": {
                  "icon": "https://github.com/anthropics.png",
                  "name": "Ubuntu",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/ubuntu-claude-code:26.04-claude2.1.314"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the ttyd web terminal behind the public domain (7681).",
                      "defaultValue": "7681"
                    },
                    "SSH_PORT": {
                      "isOptional": false,
                      "description": "Port sshd listens on; Railway's TCP proxy forwards to it (2222).",
                      "defaultValue": "2222"
                    },
                    "TMUX_SESSION": {
                      "isOptional": false,
                      "description": "Name of the tmux session shared by browser and SSH, where Claude Code keeps running.",
                      "defaultValue": "main"
                    },
                    "SUDO_NOPASSWD": {
                      "isOptional": false,
                      "description": "Let the terminal user run sudo without a password.",
                      "defaultValue": "true"
                    },
                    "TERMINAL_USER": {
                      "isOptional": false,
                      "description": "Linux user for browser and SSH logins (default ubuntu).",
                      "defaultValue": "ubuntu"
                    },
                    "TERMINAL_TITLE": {
                      "isOptional": false,
                      "description": "Browser tab title of the web terminal.",
                      "defaultValue": "Ubuntu + Claude Code"
                    },
                    "TTYD_FONT_SIZE": {
                      "isOptional": false,
                      "description": "Font size of the browser terminal.",
                      "defaultValue": "15"
                    },
                    "TMUX_AUTO_ATTACH": {
                      "isOptional": false,
                      "description": "Attach interactive SSH logins to the shared tmux session.",
                      "defaultValue": "true"
                    },
                    "TTYD_MAX_CLIENTS": {
                      "isOptional": false,
                      "description": "Max simultaneous browser clients (0 = unlimited).",
                      "defaultValue": "0"
                    },
                    "SSH_PASSWORD_AUTH": {
                      "isOptional": false,
                      "description": "Allow SSH password logins; set false for key-only SSH.",
                      "defaultValue": "true"
                    },
                    "TERMINAL_PASSWORD": {
                      "isOptional": false,
                      "description": "Login password for the web terminal and SSH, generated per deploy.",
                      "defaultValue": "{{TERMINAL_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "2222": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:7681": {
                        "port": 7681
                      }
                    }
                  },
                  "volumeMounts": {
                    "a0717ba6-92d0-41f2-9377-e93688b1a38b": {
                      "mountPath": "/home"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-31T04:14:55.520Z",
  "generator_version": "0.1.0"
}
