docs(runtime): multi-platform deployment pattern#3054
Open
viktormarinho wants to merge 1 commit intomainfrom
Open
docs(runtime): multi-platform deployment pattern#3054viktormarinho wants to merge 1 commit intomainfrom
viktormarinho wants to merge 1 commit intomainfrom
Conversation
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>
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
The existing deployment docs only showed simple
withRuntimeusage (no custom routes, no assets). Real MCP apps use acreateApp()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
🤖 Generated with Claude Code
Summary by cubic
Expands the
@decocms/runtimedeployment 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 (viahono/aws-lambda), clarifying thatwithRuntimereturns a standard fetch handler and asset loading is the only platform-specific part.Written for commit a81d95e. Summary will update on new commits.