Skip to main content

Model Context Protocol wire types

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_types-2.0.0b1.tar.gz (65.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_types-2.0.0b1-py3-none-any.whl (68.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_types-2.0.0b1.tar.gz.

File metadata

  • Download URL: mcp_types-2.0.0b1.tar.gz
  • Upload date:
  • Size: 65.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mcp_types-2.0.0b1.tar.gz
Algorithm Hash digest
SHA256 6a26910a737c4cd4de36c7d5629febe7d33d4556a9d196166b5c7187a6516944
MD5 35637ca8915db01cfeea6cc0a85b17d3
BLAKE2b-256 2b88f3e4322a5bfc382f8851e584f2e2c87354467dc17fb602dd4b13dee65b7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0b1.tar.gz:

Publisher: publish-pypi.yml on modelcontextprotocol/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_types-2.0.0b1-py3-none-any.whl.

File metadata

  • Download URL: mcp_types-2.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 68.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mcp_types-2.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b22b56b0ba7b1d51c84dc99afdd603ae225c55e9e8f07477774552bf34c8cd
MD5 759cd35695afb4a4222b7a6b87b953c0
BLAKE2b-256 3f052da79c73dd07d028163c2b24d4cc6e988da11dff83f7902a07d69a87df80

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0b1-py3-none-any.whl:

Publisher: publish-pypi.yml on modelcontextprotocol/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page