Skip to content

Container server fixes #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 1, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modify configs
  • Loading branch information
cmsparks committed May 1, 2025
commit a535e883dea0be10ff2ba4e113dba5290b575cec
2 changes: 1 addition & 1 deletion apps/sandbox-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"check:types": "run-tsc",
"deploy": "wrangler deploy",
"dev": "concurrently \"tsx container/index.ts\" \"wrangler dev --var \"ENVIRONMENT:dev\"\"",
"build:container": "docker build --tag sandbox-container:$(git rev-parse --short HEAD) -f Dockerfile ../../ && wrangler containers push sandbox-container:$(git rev-parse --short HEAD)",
"build:container": "docker build --platform linux/amd64 --tag sandbox-container:$(git rev-parse --short HEAD) -f Dockerfile ../../ && wrangler containers push sandbox-container:$(git rev-parse --short HEAD)",
"start": "wrangler dev",
"start:container": "tsx container/index.ts",
"postinstall": "mkdir -p workdir",
Expand Down
10 changes: 4 additions & 6 deletions apps/sandbox-container/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@
"production": {
"name": "mcp-cloudflare-container-sandbox-production",
"account_id": "6702657b6aa048cf3081ff3ff3c9c52f",
"routes": [{ "pattern": "sandbox.mcp.cloudflare.com", "custom_domain": true }],
"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:1acac68",
"image": "registry.cloudchamber.cfdata.org/sandbox-container:d802004",
"class_name": "ContainerMcpAgent",
"max_instances": 20,
"max_instances": 30,
"rollout_step_percentage": 100,
"instances": 20,
"instances": 3,
}
],
"durable_objects": {
Expand All @@ -133,8 +133,6 @@
]
},
"vars": {
"CLOUDFLARE_CLIENT_ID": "<PLACEHOLDER>",
"CLOUDFLARE_CLIENT_SECRET": "<PLACEHOLDER>",
"ENVIRONMENT": "prod",
"MCP_SERVER_NAME": "<PLACEHOLDER>",
"MCP_SERVER_VERSION": "<PLACEHOLDER>"
Expand Down