mcp-types2.2.0
mcp-types2.2.0
Published
Model Context Protocol wire types
pip install mcp-types
Package Downloads
Authors
Project URLs
Requires Python
>=3.10
MCP Types
The wire types for the Model Context Protocol.
This package holds the protocol message models, JSON-RPC envelope types, per-version
surface validators, and the protocol-version registry. Its only runtime dependencies are
pydantic and typing-extensions, so it can be installed on its own when you need to
(de)serialize MCP traffic without pulling in the full mcp SDK.
from mcp_types import Tool, CallToolRequest
from mcp_types.version import LATEST_PROTOCOL_VERSION
The mcp package re-exports these names, so existing from mcp import Tool imports
keep working.