Skip to content

docs(runtime): multi-platform deployment pattern#3054

Open
viktormarinho wants to merge 1 commit intomainfrom
viktormarinho/multi-platform-deploy-docs
Open

docs(runtime): multi-platform deployment pattern#3054
viktormarinho wants to merge 1 commit intomainfrom
viktormarinho/multi-platform-deploy-docs

Conversation

@viktormarinho
Copy link
Copy Markdown
Contributor

@viktormarinho viktormarinho commented Apr 8, 2026

Summary

  • Expands the deployment section in the runtime README with the app factory pattern used by real MCP apps (like slide-maker)
  • Documents thin entrypoints for Bun, Cloudflare Workers, Deno, Node.js, and AWS Lambda
  • Explains key principles: asset loading is the only thing that varies per platform, adding a new target is ~10 lines

Context

The existing deployment docs only showed simple withRuntime usage (no custom routes, no assets). Real MCP apps use a createApp() factory pattern with platform-specific entrypoints, but this wasn't documented anywhere. This makes it easy for agents and developers to add new deployment targets to any MCP app.

Test plan

  • Verify README renders correctly on GitHub
  • Review code examples for accuracy

🤖 Generated with Claude Code


Summary by cubic

Expands the @decocms/runtime deployment docs with an app factory pattern and thin, per‑platform entrypoints. Adds examples for Bun, Cloudflare Workers, Deno, Node.js (via @hono/node-server), and AWS Lambda (via hono/aws-lambda), clarifying that withRuntime returns a standard fetch handler and asset loading is the only platform-specific part.

Written for commit a81d95e. Summary will update on new commits.

The existing deployment docs only showed simple withRuntime usage.
Real MCP apps with custom routes and static assets need the app
factory pattern (createApp) with thin per-platform entrypoints.

Adds documented examples for Bun, Cloudflare Workers, Deno, Node.js,
and AWS Lambda, along with key principles for adding new targets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

🧪 Benchmark

Should we run the Virtual MCP strategy benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant