python-sdk/src/mcp-types
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-24 15:41:59 +01:00
..
mcp_types Accept boolean sub-schemas in 2025-11-25 tool schema properties (#3354) 2026-08-24 15:41:59 +01:00
pyproject.toml Serve v2 docs at the site root, with permanent per-major paths (#3176) 2026-07-28 13:57:21 +01:00
README.md Split protocol types into a standalone mcp-types package (#2973) 2026-06-25 19:18:38 +02:00

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.