{
  "manifest_version": "1.0.0",
  "template": {
    "id": "52c3b139-fbe9-4129-a42f-baa601df3097",
    "slug": "magpie-1",
    "name": "magpie",
    "description": "Deploy magpie with web UI on Railway.",
    "url": "https://railway.com/deploy/magpie-1",
    "upstream": {
      "image": "ghcr.io/yetone/magpie:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "magpie",
      "source": {
        "image": "ghcr.io/yetone/magpie:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MAGPIE_WEB_KEY",
      "service": "magpie",
      "description": "Password used to protect access to the magpie Web UI. Set a strong random value to prevent unauthorized access to the management interface.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "magpie",
      "description": "Override used to run the service with the correct permissions when mounting a Railway Volume.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "magpie-1"
      }
    },
    "cli": "railway deploy --template magpie-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "52c3b139-fbe9-4129-a42f-baa601df3097",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b716753a-9059-44db-9f26-7bcab7ffc2c7": {
                  "icon": "https://usemagpie.ai/img/magpie-small.svg",
                  "name": "magpie",
                  "deploy": {
                    "startCommand": "/magpie web --lan --no-open",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/yetone/magpie:latest"
                  },
                  "variables": {
                    "MAGPIE_WEB_KEY": {
                      "isOptional": false,
                      "description": "Password used to protect access to the magpie Web UI. Set a strong random value to prevent unauthorized access to the management interface.",
                      "defaultValue": "{{MAGPIE_WEB_KEY}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Override used to run the service with the correct permissions when mounting a Railway Volume.",
                      "defaultValue": "{{RAILWAY_RUN_UID}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3425": {
                        "port": 3425
                      },
                      "<hasDomain>:3430": {
                        "port": 3430
                      }
                    }
                  },
                  "volumeMounts": {
                    "b716753a-9059-44db-9f26-7bcab7ffc2c7": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-30T10:14:49.191Z",
  "generator_version": "0.1.0"
}
