{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d9ca5294-d2ec-4c00-bb2a-e866602d2f4f",
    "slug": "swetrix-statistics-mcp",
    "name": "Swetrix Statistics MCP",
    "description": "MCP server for the Swetrix Statistics API - read-only analytics queries.",
    "url": "https://railway.com/deploy/swetrix-statistics-mcp",
    "upstream": {
      "repo_url": "https://github.com/kieksme/mcp-swetrix"
    }
  },
  "services": [
    {
      "name": "mcp-swetrix",
      "source": {
        "repo": "https://github.com/kieksme/mcp-swetrix"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SWETRIX_API_KEY",
      "service": "mcp-swetrix",
      "description": "Your Swetrix API key (Account Settings -> API). Required to authenticate statistics queries.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MCP_HTTP_AUTH_TOKEN",
      "service": "mcp-swetrix",
      "description": "Bearer token clients must send to authenticate against this MCP server's HTTP endpoint. Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "mcp-swetrix",
      "description": "Internal build config - points at this package's Dockerfile in the monorepo. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "packages/swetrix-statistics-mcp-server/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "swetrix-statistics-mcp"
      }
    },
    "cli": "railway deploy --template swetrix-statistics-mcp",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d9ca5294-d2ec-4c00-bb2a-e866602d2f4f",
            "serializedConfig": {
              "services": {
                "34b7b74c-ab94-469c-afab-49cb03d5be7c": {
                  "name": "mcp-swetrix",
                  "source": {
                    "repo": "kieksme/mcp-swetrix",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "SWETRIX_API_KEY": {
                      "isOptional": false,
                      "description": "Your Swetrix API key (Account Settings -> API). Required to authenticate statistics queries.",
                      "defaultValue": "{{SWETRIX_API_KEY}}"
                    },
                    "MCP_HTTP_AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Bearer token clients must send to authenticate against this MCP server's HTTP endpoint. Auto-generated.",
                      "defaultValue": "{{MCP_HTTP_AUTH_TOKEN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Internal build config - points at this package's Dockerfile in the monorepo. Do not change.",
                      "defaultValue": "packages/swetrix-statistics-mcp-server/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T19:29:17.464Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_00cf90a001184233aa09",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 163,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "mcp-swetrix"
  }
}
