-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
39 lines (39 loc) · 1.72 KB
/
Copy pathwrangler.jsonc
File metadata and controls
39 lines (39 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// wrangler.jsonc - better-telegram-mcp Cloudflare Worker + Container + KV.
// Resource IDs are placeholders created out-of-band (wrangler kv:namespace create)
// and filled in at deploy time, not committed as live IDs.
{
"name": "better-telegram-mcp-worker",
"main": "src/worker.ts",
"compatibility_date": "2026-06-14",
"containers": [
{
"name": "better-telegram-mcp-worker",
"class_name": "TelegramContainer",
// CF Containers pull ONLY from the Cloudflare managed registry (an external
// ghcr.io ref fails IMAGE_REGISTRY_NOT_CONFIGURED). Push the pre-built http
// image first: docker pull ghcr.io/n24q02m/better-telegram-mcp:beta &&
// docker tag ... better-telegram-mcp:beta && wrangler containers push
// better-telegram-mcp:beta, then fill <YOUR_ACCOUNT_ID>.
"image": "registry.cloudflare.com/<YOUR_ACCOUNT_ID>/better-telegram-mcp:beta",
"instance_type": "basic",
"max_instances": 1
}
],
"durable_objects": {
"bindings": [{ "name": "TELEGRAM", "class_name": "TelegramContainer" }]
},
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["TelegramContainer"] }],
"kv_namespaces": [{ "binding": "KV", "id": "<telegram-kv-namespace-id>" }],
// Non-secret container config (forwarded by TelegramContainer.envVars).
// Secrets via `wrangler secret put`: CREDENTIAL_SECRET, MCP_RELAY_PASSWORD
// (Gate A shared relay-password front door), MCP_DCR_SERVER_SECRET.
"vars": {
"PUBLIC_URL": "<YOUR_PUBLIC_URL>",
"MCP_STORAGE_BACKEND": "cf-kv",
"MCP_KV_BASE_URL": "http://kv.internal",
"MCP_TRANSPORT": "http",
"MCP_PORT": "8080"
},
"routes": [{ "pattern": "<YOUR_WORKER_DOMAIN>", "custom_domain": true }],
"observability": { "enabled": true }
}