{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d721da73-0369-4a44-90d8-2b5c227015fb",
    "slug": "mcp-js",
    "name": "MCP JS",
    "description": "mcp js gives a snapshottable javascript repl connected to your tools for ai",
    "url": "https://railway.com/deploy/mcp-js",
    "upstream": {
      "repo_url": "https://github.com/r33drichards/mcp-js"
    }
  },
  "services": [
    {
      "name": "mcp-js-p1ze",
      "source": {
        "repo": "https://github.com/r33drichards/mcp-js"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MCP_V8_FS_DIR",
      "service": "mcp-js-p1ze",
      "description": "Directory where /work filesystem snapshots are written. Keep it on the volume so files survive redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "/data/fs"
    },
    {
      "key": "MCP_V8_FS_STORE",
      "service": "mcp-js-p1ze",
      "description": "Storage backend for the persistent /work filesystem exposed to scripts. dir persists content-addressed snapshots to disk.",
      "secret": false,
      "strategy": "default",
      "default": "dir"
    },
    {
      "key": "MCP_V8_HEAP_DIR",
      "service": "mcp-js-p1ze",
      "description": "Directory where V8 heap snapshots are written. Keep it on the volume so agent state survives redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "/data/heaps"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "mcp-js-p1ze",
      "description": "Runs the server as root so it can write to the Railway volume at /data (Railway mounts volumes owned by root; the image otherwise runs as a non-root user). Keep as 0.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "MCP_V8_HEAP_STORE",
      "service": "mcp-js-p1ze",
      "description": "Storage backend for V8 heap snapshots. dir persists heaps to disk so agents keep state across calls (stateful mode). Remove the three heap/fs variables for a stateless, WASM-capable server.",
      "secret": false,
      "strategy": "default",
      "default": "dir"
    },
    {
      "key": "MCP_V8_ALLOWED_HOSTS",
      "service": "mcp-js-p1ze",
      "description": "Host-header allowlist for the /mcp endpoint (DNS-rebinding protection). Defaults to this service's Railway domains; append extra hostnames comma-separated if you attach a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MCP_V8_SESSION_DB_PATH",
      "service": "mcp-js-p1ze",
      "description": "sled session db storage path",
      "secret": false,
      "strategy": "default",
      "default": "/data/sessions"
    },
    {
      "key": "MCP_V8_SANDBOX_MANIFEST",
      "service": "mcp-js-p1ze",
      "description": "kernel level sandbxing config",
      "secret": false,
      "strategy": "default",
      "default": "{\"version\":\"0.1.0\",\"network\":{\"mode\":\"unrestricted\"}}"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mcp-js"
      }
    },
    "cli": "railway deploy --template mcp-js",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d721da73-0369-4a44-90d8-2b5c227015fb",
            "serializedConfig": {
              "services": {
                "916480ee-8f6e-4d3a-8a4c-9eea201892cb": {
                  "name": "mcp-js-p1ze",
                  "source": {
                    "repo": "r33drichards/mcp-js"
                  },
                  "variables": {
                    "MCP_V8_FS_DIR": {
                      "description": "Directory where /work filesystem snapshots are written. Keep it on the volume so files survive redeploys.",
                      "defaultValue": "/data/fs"
                    },
                    "MCP_V8_FS_STORE": {
                      "description": "Storage backend for the persistent /work filesystem exposed to scripts. dir persists content-addressed snapshots to disk.",
                      "defaultValue": "dir"
                    },
                    "MCP_V8_HEAP_DIR": {
                      "description": "Directory where V8 heap snapshots are written. Keep it on the volume so agent state survives redeploys.",
                      "defaultValue": "/data/heaps"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Runs the server as root so it can write to the Railway volume at /data (Railway mounts volumes owned by root; the image otherwise runs as a non-root user). Keep as 0.",
                      "defaultValue": "0"
                    },
                    "MCP_V8_HEAP_STORE": {
                      "description": "Storage backend for V8 heap snapshots. dir persists heaps to disk so agents keep state across calls (stateful mode). Remove the three heap/fs variables for a stateless, WASM-capable server.",
                      "defaultValue": "dir"
                    },
                    "MCP_V8_ALLOWED_HOSTS": {
                      "description": "Host-header allowlist for the /mcp endpoint (DNS-rebinding protection). Defaults to this service's Railway domains; append extra hostnames comma-separated if you attach a custom domain.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}},${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MCP_V8_SESSION_DB_PATH": {
                      "description": "sled session db storage path",
                      "defaultValue": "/data/sessions"
                    },
                    "MCP_V8_SANDBOX_MANIFEST": {
                      "description": "kernel level sandbxing config",
                      "defaultValue": "{\"version\":\"0.1.0\",\"network\":{\"mode\":\"unrestricted\"}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T17:21:03.790Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f1541fe98c2648eab203",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 179,
    "typical_build_seconds": 107,
    "typical_start_seconds": 11,
    "slowest_service": "mcp-js-p1ze"
  }
}
