{
  "manifest_version": "1.0.0",
  "template": {
    "id": "57bf6bcd-1402-45c5-8793-2022b36c0906",
    "slug": "madbull",
    "name": "MadBull",
    "description": "Your own MadBull AI assistant with web dashboard and setup wizard.",
    "url": "https://railway.com/deploy/madbull",
    "upstream": {
      "repo_url": "https://github.com/staticpayload/madbull-railway"
    }
  },
  "services": [
    {
      "name": "madbull-railway",
      "source": {
        "repo": "https://github.com/staticpayload/madbull-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "madbull-railway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SETUP_PASSWORD",
      "service": "madbull-railway",
      "description": "Provide a value for SETUP_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPENCLAW_STATE_DIR",
      "service": "madbull-railway",
      "description": "Provide a value for OPENCLAW_STATE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/.openclaw"
    },
    {
      "key": "OPENCLAW_PUBLIC_PORT",
      "service": "madbull-railway",
      "description": "Provide a value for OPENCLAW_PUBLIC_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OPENCLAW_GATEWAY_TOKEN",
      "service": "madbull-railway",
      "description": "Provide a value for OPENCLAW_GATEWAY_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENCLAW_WORKSPACE_DIR",
      "service": "madbull-railway",
      "description": "Provide a value for OPENCLAW_WORKSPACE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/data/workspace"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "madbull"
      }
    },
    "cli": "railway deploy --template madbull",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "57bf6bcd-1402-45c5-8793-2022b36c0906",
            "serializedConfig": {
              "services": {
                "19602083-b188-446f-af6b-a94ee90e2e36": {
                  "name": "madbull-railway",
                  "source": {
                    "repo": "staticpayload/madbull-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "SETUP_PASSWORD": {
                      "defaultValue": "{{SETUP_PASSWORD}}"
                    },
                    "OPENCLAW_STATE_DIR": {
                      "defaultValue": "/data/.openclaw"
                    },
                    "OPENCLAW_PUBLIC_PORT": {
                      "defaultValue": "8080"
                    },
                    "OPENCLAW_GATEWAY_TOKEN": {
                      "defaultValue": "{{OPENCLAW_GATEWAY_TOKEN}}"
                    },
                    "OPENCLAW_WORKSPACE_DIR": {
                      "defaultValue": "/data/workspace"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T13:04:26.010Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_5344bf9e1b7c4ccfab54",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
