{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5b8e29ea-3415-4488-98a4-38f800d64472",
    "slug": "mastra-agent-builder",
    "name": "Mastra Agent Builder",
    "description": "Hosted Studio agent builder with MastraEditor. Enterprise license needed.",
    "url": "https://railway.com/deploy/mastra-agent-builder",
    "upstream": {
      "repo_url": "https://github.com/leoisadev1/mastra-template-agent-builder"
    }
  },
  "services": [
    {
      "name": "Mastra Server",
      "source": {
        "repo": "https://github.com/leoisadev1/mastra-template-agent-builder"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LIBSQL_URL",
      "service": "Mastra Server",
      "description": "Provide a value for LIBSQL_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "Mastra Server",
      "description": "Provide a value for OPENAI_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mastra-agent-builder"
      }
    },
    "cli": "railway deploy --template mastra-agent-builder",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5b8e29ea-3415-4488-98a4-38f800d64472",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "41a8941a-3826-4fe8-bcfd-72a3cb8bdce6": {
                  "icon": "https://unpkg.com/mastra/dist/studio/mastra.svg",
                  "name": "Mastra Server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/leoisadev1/mastra-template-agent-builder",
                    "rootDirectory": null
                  },
                  "variables": {
                    "LIBSQL_URL": {
                      "isOptional": false,
                      "defaultValue": "file:${{RAILWAY_VOLUME_MOUNT_PATH}}/mastra.db"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "41a8941a-3826-4fe8-bcfd-72a3cb8bdce6": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Mastra Server",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-05T06:13:10.366Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fe7939fe419b45deb3cd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 168,
    "typical_build_seconds": 141,
    "typical_start_seconds": 10,
    "slowest_service": "Mastra Server"
  }
}
