mirror of
https://github.com/hanzoai/mcp-server-cloudflare.git
synced 2026-10-30 18:28:06 +00:00
183 lines
3.9 KiB
JSON
183 lines
3.9 KiB
JSON
{
|
|
"$schema": "node_modules/wrangler/config-schema.json",
|
|
"name": "sandbox-container-dev",
|
|
"main": "server/sandbox.server.app.ts",
|
|
"compatibility_date": "2025-04-03",
|
|
"compatibility_flags": ["nodejs_compat"],
|
|
"containers": [
|
|
{
|
|
"name": "sandbox-container",
|
|
"image": "./Dockerfile",
|
|
"class_name": "UserContainer",
|
|
"max_instances": 2,
|
|
"rollout_step_percentage": 100
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"class_name": "ContainerMcpAgent",
|
|
"name": "MCP_OBJECT"
|
|
},
|
|
{
|
|
"class_name": "ContainerManager",
|
|
"name": "CONTAINER_MANAGER"
|
|
},
|
|
{
|
|
"class_name": "UserContainer",
|
|
"name": "USER_CONTAINER"
|
|
}
|
|
]
|
|
},
|
|
"migrations": [
|
|
{
|
|
"new_sqlite_classes": ["ContainerManager", "ContainerMcpAgent"],
|
|
"tag": "v1"
|
|
},
|
|
{
|
|
"new_sqlite_classes": ["UserContainer"],
|
|
"tag": "v2"
|
|
}
|
|
],
|
|
"observability": {
|
|
"enabled": true
|
|
},
|
|
"kv_namespaces": [
|
|
{
|
|
"binding": "OAUTH_KV",
|
|
"id": "DEV_KV"
|
|
},
|
|
{
|
|
"binding": "USER_BLOCKLIST",
|
|
"id": "DEV_BLOCKLIST"
|
|
}
|
|
],
|
|
"dev": {
|
|
"port": 8976
|
|
},
|
|
"ai": {
|
|
"binding": "AI"
|
|
},
|
|
"vars": {
|
|
"CLOUDFLARE_CLIENT_ID": "<PLACEHOLDER>",
|
|
"CLOUDFLARE_CLIENT_SECRET": "<PLACEHOLDER>",
|
|
"ENVIRONMENT": "dev",
|
|
"MCP_SERVER_NAME": "<PLACEHOLDER>",
|
|
"MCP_SERVER_VERSION": "<PLACEHOLDER>"
|
|
},
|
|
"analytics_engine_datasets": [
|
|
{
|
|
"binding": "MCP_METRICS",
|
|
"dataset": "mcp-metrics-dev"
|
|
}
|
|
],
|
|
"env": {
|
|
"staging": {
|
|
"name": "mcp-cloudflare-container-sandbox-staging",
|
|
"account_id": "6702657b6aa048cf3081ff3ff3c9c52f",
|
|
"routes": [{ "pattern": "containers-staging.mcp.cloudflare.com", "custom_domain": true }],
|
|
"containers": [
|
|
{
|
|
"name": "sandbox-container-staging",
|
|
// UPDATE WHEN DEPLOYING A NEW IMAGE
|
|
"image": "registry.cloudchamber.cfdata.org/sandbox-container:d802004",
|
|
"class_name": "UserContainer",
|
|
"max_instances": 5,
|
|
"rollout_step_percentage": 100,
|
|
"instances": 3
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"class_name": "ContainerMcpAgent",
|
|
"name": "MCP_OBJECT"
|
|
},
|
|
{
|
|
"class_name": "ContainerManager",
|
|
"name": "CONTAINER_MANAGER"
|
|
},
|
|
{
|
|
"class_name": "UserContainer",
|
|
"name": "USER_CONTAINER"
|
|
}
|
|
]
|
|
},
|
|
"vars": {
|
|
"ENVIRONMENT": "staging",
|
|
"MCP_SERVER_NAME": "<PLACEHOLDER>",
|
|
"MCP_SERVER_VERSION": "<PLACEHOLDER>"
|
|
},
|
|
"analytics_engine_datasets": [
|
|
{
|
|
"binding": "MCP_METRICS",
|
|
"dataset": "mcp-metrics-staging"
|
|
}
|
|
],
|
|
"kv_namespaces": [
|
|
{
|
|
"binding": "OAUTH_KV",
|
|
"id": "65cf7200dde9433aa8fbab5a935e071d"
|
|
},
|
|
{
|
|
"binding": "USER_BLOCKLIST",
|
|
"id": "68e95343ded8448db179256c68f175b2"
|
|
}
|
|
]
|
|
},
|
|
"production": {
|
|
"name": "mcp-cloudflare-container-sandbox-production",
|
|
"account_id": "6702657b6aa048cf3081ff3ff3c9c52f",
|
|
"routes": [{ "pattern": "containers.mcp.cloudflare.com", "custom_domain": true }],
|
|
"containers": [
|
|
{
|
|
"name": "sandbox-container",
|
|
// UPDATE WHEN DEPLOYING A NEW IMAGE
|
|
"image": "registry.cloudchamber.cfdata.org/sandbox-container:d802004",
|
|
"class_name": "UserContainer",
|
|
"max_instances": 50,
|
|
"rollout_step_percentage": 100,
|
|
"instances": 10
|
|
}
|
|
],
|
|
"durable_objects": {
|
|
"bindings": [
|
|
{
|
|
"class_name": "ContainerMcpAgent",
|
|
"name": "MCP_OBJECT"
|
|
},
|
|
{
|
|
"class_name": "ContainerManager",
|
|
"name": "CONTAINER_MANAGER"
|
|
},
|
|
{
|
|
"class_name": "UserContainer",
|
|
"name": "USER_CONTAINER"
|
|
}
|
|
]
|
|
},
|
|
"vars": {
|
|
"ENVIRONMENT": "prod",
|
|
"MCP_SERVER_NAME": "<PLACEHOLDER>",
|
|
"MCP_SERVER_VERSION": "<PLACEHOLDER>"
|
|
},
|
|
"analytics_engine_datasets": [
|
|
{
|
|
"binding": "MCP_METRICS",
|
|
"dataset": "mcp-metrics-production"
|
|
}
|
|
],
|
|
"kv_namespaces": [
|
|
{
|
|
"binding": "OAUTH_KV",
|
|
"id": "8d66696bdd534133bbc6a773b8caf99b"
|
|
},
|
|
{
|
|
"binding": "USER_BLOCKLIST",
|
|
"id": "b874d6ae29ec43e5afad7be8da067676"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|