| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Convert the repository into a uv workspace mirroring pydantic/httpx2. The root pyproject becomes a pure coordinator (package = false) and the two distributable packages live nested under src/<pkg>/<pkg>/ each with their own pyproject: - src/mcp/mcp/ -> mcp - src/mcp-types/mcp_types/ -> mcp-types (import mcp_types) The protocol types (_types.py, jsonrpc.py) move into mcp_types, which only depends on pydantic and typing-extensions. mcp depends on mcp-types via uv-dynamic-versioning, so installing mcp still pulls the types in. The mcp.types module path is removed; all imports now use mcp_types. The curated re-exports on the top-level mcp package are unchanged.
|
Closing — this was superseded by #2973 (merged, shipped in v2.0.0a3) plus the follow-ups in #2977. Main now carries the full mcp-types split, including pieces this branch predates (methods.py, _wire_base.py, the versioned validator packages). The one thing not adopted was the coordinator-root layout with mcp nested under src/mcp/mcp/ — if we still want that restructure it'd need a fresh PR against the current tree. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Converts the repository into a uv workspace mirroring pydantic/httpx2, introducing a standalone mcp-types package for the protocol types.
Verification
AI Disclaimer
This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.