refactor(mcp): split mcp_production into pry_mcp sub-package #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/mcp-x402-split"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Splits the monolithic
mcp_production.pyinto a maintainablepry_mcp/sub-package while keepingmcp_production.pyas a thin backward-compatibility shim.Changes
pry_mcp/sub-package (avoids collision with the installedmcpSDK)mcp_production.pyis now a thin re-export shimapi.py,cli.py,mcp_sse.py, and tests to import frompry_mcpdirectlyVerification
uv run pytest tests/ -q→ 621 passed, 1 skippeduv run ruff check .→ cleanuv run python -m mypy .→ success (no issues found in 229 source files)Deferred
The
x402.pysplit is intentionally left for a focused follow-up branch. It has tightly coupled globals (X402_WALLET,EIP7702_RPC,_batch_lock,_batch_payments, etc.) that need careful extraction.