{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fb93f709-d60b-4b40-86f6-3d9f3299cffd",
    "slug": "swetrix-admin-mcp",
    "name": "Swetrix Admin MCP",
    "description": "MCP server for the Swetrix Admin API - manage projects, funnels & orgs.",
    "url": "https://railway.com/deploy/swetrix-admin-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 manage projects, funnels & organisations.",
      "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-admin-mcp-server/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "swetrix-admin-mcp"
      }
    },
    "cli": "railway deploy --template swetrix-admin-mcp",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fb93f709-d60b-4b40-86f6-3d9f3299cffd",
            "serializedConfig": {
              "services": {
                "db73f907-bb44-4b05-b401-f59a944ebbfa": {
                  "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 manage projects, funnels & organisations.",
                      "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-admin-mcp-server/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T19:26:01.302Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_04de64268cb04d3a92c4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 68,
    "typical_build_seconds": 41,
    "typical_start_seconds": 10,
    "slowest_service": "mcp-swetrix"
  }
}
