docs: Document npm+npx deployment pattern for Node.js MCP servers#183
Closed
bryankthompson wants to merge 1 commit intomodelcontextprotocol:mainfrom
Closed
docs: Document npm+npx deployment pattern for Node.js MCP servers#183bryankthompson wants to merge 1 commit intomodelcontextprotocol:mainfrom
bryankthompson wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
Add documentation for an alternative Node.js deployment pattern using npm and npx instead of bundling node_modules. This complements the existing uvx pattern for Python. Changes: - MANIFEST.md: Add npx configuration example - README.md: Add npm-based deployment section with trade-offs table - examples/npx-node/: Complete minimal working example Benefits of this pattern: - Smaller bundle sizes (< 50 KB vs 50-300 MB) - Automatic updates from npm - Zero bundle maintenance Trade-offs: - Requires internet on first launch - 30-60 second initial download 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
Add minimal documentation for an alternative Node.js deployment pattern using npm and
npxinstead of bundlingnode_modules.Motivation
This pattern is already in production use by multiple MCP servers but was undocumented. It complements PR #161 which documents the equivalent
uvxpattern for Python.Changes
MANIFEST.md
README.md
examples/npx-node/
binentry setupPattern Overview
Manifest configuration:
{ "mcp_config": { "command": "npx", "args": ["-y", "--package=your-package", "your-bin-command"] } }Benefits:
Trade-offs:
Testing
mcpb validate🤖 Generated with Claude Code