{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b8e0da4a-9d95-4cc3-9179-4830b79d9284",
    "slug": "khovdesk-community-management-studio-ser",
    "name": "khovdesk: community management studio server",
    "description": "Run your Discord community's bot, managed from the khovdesk desktop studio.",
    "url": "https://railway.com/deploy/khovdesk-community-management-studio-ser",
    "upstream": {
      "image": "ghcr.io/phahx/khovdesk-server:sha-183c57c15ff11dc9ce2aecef2bb318b7f581eb03"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "khovdesk",
      "source": {
        "image": "ghcr.io/phahx/khovdesk-server:sha-183c57c15ff11dc9ce2aecef2bb318b7f581eb03"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "khovdesk",
      "description": "Service port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "TARGET_GUILD_ID",
      "service": "khovdesk",
      "description": "Your server's ID: Developer Mode on, right-click the server -> Copy Server ID. Invite the bot before deploying.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DISCORD_BOT_TOKEN",
      "service": "khovdesk",
      "description": "Developer Portal -> Your App -> Bot -> Reset Token. Turn on Server Members, Message Content and Presence intents first.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KHOVDESK_READ_KEY",
      "service": "khovdesk",
      "description": "Read-only key for AI agents.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KHOVDESK_ACCESS_KEY",
      "service": "khovdesk",
      "description": "Full-access key for the khovdesk studio. Keep it secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "khovdesk-community-management-studio-ser"
      }
    },
    "cli": "railway deploy --template khovdesk-community-management-studio-ser",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b8e0da4a-9d95-4cc3-9179-4830b79d9284",
            "serializedConfig": {
              "services": {
                "09d45f45-6008-46f4-8f4d-345735ef4946": {
                  "name": "khovdesk",
                  "deploy": {
                    "healthcheckPath": "/health",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "image": "ghcr.io/phahx/khovdesk-server:sha-183c57c15ff11dc9ce2aecef2bb318b7f581eb03"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Service port.",
                      "defaultValue": "3000"
                    },
                    "TARGET_GUILD_ID": {
                      "isOptional": false,
                      "description": "Your server's ID: Developer Mode on, right-click the server -> Copy Server ID. Invite the bot before deploying.",
                      "defaultValue": "{{TARGET_GUILD_ID}}"
                    },
                    "KHOVDESK_PLUGINS": {
                      "isOptional": true,
                      "description": "Optional: plugins to enable, e.g., scheduled-posts, tickets, forms.",
                      "defaultValue": ""
                    },
                    "DISCORD_BOT_TOKEN": {
                      "isOptional": false,
                      "description": "Developer Portal -> Your App -> Bot -> Reset Token. Turn on Server Members, Message Content and Presence intents first.",
                      "defaultValue": "{{DISCORD_BOT_TOKEN}}"
                    },
                    "KHOVDESK_READ_KEY": {
                      "isOptional": false,
                      "description": "Read-only key for AI agents.",
                      "defaultValue": "{{KHOVDESK_READ_KEY}}"
                    },
                    "KHOVDESK_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Full-access key for the khovdesk studio. Keep it secret.",
                      "defaultValue": "{{KHOVDESK_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "09d45f45-6008-46f4-8f4d-345735ef4946": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "khovdesk",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-28T22:14:56.545Z",
  "generator_version": "0.1.0"
}
