{
  "manifest_version": "1.0.0",
  "template": {
    "id": "21e2885d-6d3f-4a9c-ab8e-eb7ec9cfe784",
    "slug": "mastra-agent-showcase",
    "name": "Mastra Agent Showcase",
    "description": "The Mastra kitchen sink: agents, workflows, MCP, guardrails, HITL.",
    "url": "https://railway.com/deploy/mastra-agent-showcase",
    "upstream": {
      "repo_url": "https://github.com/leoisadev1/mastra-template-agent"
    }
  },
  "services": [
    {
      "name": "Mastra Server",
      "source": {
        "repo": "https://github.com/leoisadev1/mastra-template-agent"
      },
      "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": "DUCKDB_PATH",
      "service": "Mastra Server",
      "description": "Provide a value for DUCKDB_PATH.",
      "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-showcase"
      }
    },
    "cli": "railway deploy --template mastra-agent-showcase",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "21e2885d-6d3f-4a9c-ab8e-eb7ec9cfe784",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "fa5a4716-000e-4a90-a588-eaa4b05d85ba": {
                  "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",
                    "rootDirectory": null
                  },
                  "variables": {
                    "LIBSQL_URL": {
                      "isOptional": false,
                      "defaultValue": "file:${{RAILWAY_VOLUME_MOUNT_PATH}}/mastra.db"
                    },
                    "DUCKDB_PATH": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}/mastra-observability.duckdb"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "fa5a4716-000e-4a90-a588-eaa4b05d85ba": {
                      "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-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-05T06:20:21.761Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_6d8385b8e26c4ce2b599",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING"
      }
    ]
  }
}
