Document PyPI+uvx deployment pattern for Python MCP servers#161
Closed
bryan-anthropic wants to merge 2 commits intomodelcontextprotocol:mainfrom
Closed
Document PyPI+uvx deployment pattern for Python MCP servers#161bryan-anthropic wants to merge 2 commits intomodelcontextprotocol:mainfrom
bryan-anthropic wants to merge 2 commits intomodelcontextprotocol:mainfrom
Conversation
Add comprehensive documentation for: - Variable substitution patterns for cross-platform portability - Four-phase testing approach (dev, clean environment, cross-platform, integration) - Common portability mistakes and solutions - Error message best practices with actionable examples These additions help developers create more robust and maintainable MCPB bundles. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add minimal documentation for an alternative Python deployment pattern using PyPI and uvx instead of bundling dependencies. Changes: - README.md: Add concise PyPI deployment section with trade-offs - MANIFEST.md: Add uvx configuration example - examples/pypi-python/: Working reference implementation This pattern enables: - Smaller bundle sizes (< 1 MB vs 50+ MB) - Dynamic dependency resolution via PyPI - Automatic updates with @latest tag Trade-offs: - Requires users to install uv tool - Needs internet connection at first launch 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Jan 19, 2026
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 Python deployment pattern using PyPI and
uvxinstead of bundling dependencies.Motivation
During testing, we verified that Python MCP servers can successfully use PyPI for dynamic dependency resolution via
uvx. This pattern is already in production use but was undocumented in the MCPB specification.Changes
README.md
MANIFEST.md
examples/pypi-python/
[project.scripts]entry point setupPattern Overview
Manifest configuration:
{ "mcp_config": { "command": "uvx", "args": ["--native-tls", "package-name@latest"] } }Benefits:
@latesttagTrade-offs:
uvtoolTesting
Documentation Approach
This PR intentionally keeps documentation minimal and generic: