{
  "manifest_version": "1.0.0",
  "template": {
    "id": "895d8f67-d41d-4f6c-be6d-95dc576098ba",
    "slug": "contextmate",
    "name": "contextmate",
    "description": "Zero-knowledge encrypted sync server for AI agent context",
    "url": "https://railway.com/deploy/contextmate",
    "upstream": {
      "repo_url": "https://github.com/contextmate/contextmate"
    }
  },
  "services": [
    {
      "name": "contextmate",
      "source": {
        "repo": "https://github.com/contextmate/contextmate"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "contextmate",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "contextmate"
      }
    },
    "cli": "railway deploy --template contextmate",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "895d8f67-d41d-4f6c-be6d-95dc576098ba",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "85660668-11d8-499b-ad30-62026eddaffb": {
                  "icon": null,
                  "name": "contextmate",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/contextmate/contextmate",
                    "rootDirectory": "/server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "JWT_SECRET": {
                      "isOptional": true,
                      "description": "Auto-generated on first boot.    Set explicitly for multi-instance.",
                      "defaultValue": ""
                    },
                    "CORS_ORIGINS": {
                      "isOptional": true,
                      "description": "Comma-separated allowed   origins for the web dashboard. Leave blank to allow all.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "85660668-11d8-499b-ad30-62026eddaffb": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T09:24:13.217Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_b67b72535fae491896d4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
