{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a3175849-d336-494b-8ceb-a97985b3c12a",
    "slug": "midwire",
    "name": "midwire",
    "description": "Verify your agent's writes actually landed",
    "url": "https://railway.com/deploy/midwire",
    "upstream": {
      "repo_url": "https://github.com/NovusEdge/midwire"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "midwire",
      "source": {
        "repo": "https://github.com/NovusEdge/midwire"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MIDWIRE_MODE",
      "service": "midwire",
      "description": "Provide a value for MIDWIRE_MODE.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_PATH",
      "service": "midwire",
      "description": "Provide a value for DATABASE_PATH.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MIDWIRE_ADMIN_TOKEN",
      "service": "midwire",
      "description": "Provide a value for MIDWIRE_ADMIN_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MIDWIRE_UPSTREAM_URL",
      "service": "midwire",
      "description": "Provide a value for MIDWIRE_UPSTREAM_URL.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MIDWIRE_PROBE_TIMEOUT_MS",
      "service": "midwire",
      "description": "Provide a value for MIDWIRE_PROBE_TIMEOUT_MS.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "midwire"
      }
    },
    "cli": "railway deploy --template midwire",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a3175849-d336-494b-8ceb-a97985b3c12a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "888dd82f-242b-466c-a415-35a09674702e": {
                  "icon": null,
                  "name": "midwire",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/NovusEdge/midwire",
                    "rootDirectory": null
                  },
                  "variables": {
                    "MIDWIRE_MODE": {
                      "isOptional": false,
                      "defaultValue": "{{MIDWIRE_MODE}}"
                    },
                    "DATABASE_PATH": {
                      "isOptional": false,
                      "defaultValue": "{{DATABASE_PATH}}"
                    },
                    "MIDWIRE_ADMIN_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{MIDWIRE_ADMIN_TOKEN}}"
                    },
                    "MIDWIRE_UPSTREAM_URL": {
                      "isOptional": false,
                      "defaultValue": "{{MIDWIRE_UPSTREAM_URL}}"
                    },
                    "MIDWIRE_PROBE_TIMEOUT_MS": {
                      "isOptional": false,
                      "defaultValue": "{{MIDWIRE_PROBE_TIMEOUT_MS}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "888dd82f-242b-466c-a415-35a09674702e": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T16:14:56.866Z",
  "generator_version": "0.1.0"
}
