{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a3d5fc1c-b34a-449b-9cfe-a1be056c16a4",
    "slug": "companion-games-mcp",
    "name": "Companion Games MCP",
    "description": "Play eight conversational games with your AI companion through MCP.",
    "url": "https://railway.com/deploy/companion-games-mcp",
    "upstream": {
      "repo_url": "https://github.com/lauramarmun-prog/companion-game"
    }
  },
  "services": [
    {
      "name": "companion-game",
      "source": {
        "repo": "https://github.com/lauramarmun-prog/companion-game"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "FRONTEND_ORIGIN",
      "service": "companion-game",
      "description": "Provide a value for FRONTEND_ORIGIN.",
      "secret": false,
      "strategy": "default",
      "default": "https://companiongames.netlify.app"
    },
    {
      "key": "MCP_PATH_SECRET",
      "service": "companion-game",
      "description": "Automatically generated private URL path for the MCP endpoint.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "COMPANION_GAMES_STATE_FILE",
      "service": "companion-game",
      "description": "Persistent storage file for Enchanted Forest adventure sessions.",
      "secret": false,
      "strategy": "default",
      "default": "/data/graphic-adventure-state.json"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "companion-games-mcp"
      }
    },
    "cli": "railway deploy --template companion-games-mcp",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a3d5fc1c-b34a-449b-9cfe-a1be056c16a4",
            "serializedConfig": {
              "services": {
                "db713d75-8ec9-4ba9-872c-e824e0814b9d": {
                  "name": "companion-game",
                  "deploy": {
                    "startCommand": "npm start",
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "lauramarmun-prog/companion-game",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "FRONTEND_ORIGIN": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://companiongames.netlify.app"
                    },
                    "MCP_PATH_SECRET": {
                      "isOptional": false,
                      "description": "Automatically generated private URL path for the MCP endpoint.",
                      "defaultValue": "{{MCP_PATH_SECRET}}"
                    },
                    "COMPANION_GAMES_STATE_FILE": {
                      "isOptional": false,
                      "description": "Persistent storage file for Enchanted Forest adventure sessions.",
                      "defaultValue": "/data/graphic-adventure-state.json"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "db713d75-8ec9-4ba9-872c-e824e0814b9d": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "companion-game",
      "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-09T07:40:14.918Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_7de68911060c43b18523",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 502, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
