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.0a3.tar.gz (64.7 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.0a3-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_types-2.0.0a3.tar.gz
  • Upload date:
  • Size: 64.7 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.0a3.tar.gz
Algorithm Hash digest
SHA256 fcce80d6b9a3092e871c310c5e2de3bdcb07ef5a943d82f74c9c56949a477699
MD5 4deb8bd078f9ea5f3d3fb5067cf9a63b
BLAKE2b-256 adcf65e3f4fc763974f20d5bf68cba0977ed014115971a9c1f785f5c68d97708

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0a3.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.0a3-py3-none-any.whl.

File metadata

  • Download URL: mcp_types-2.0.0a3-py3-none-any.whl
  • Upload date:
  • Size: 67.8 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.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c93bc23fa3e4bab47ddc9bde1ba50002b2b00d2cd7f54ff775844f0368d1731
MD5 b3083798816047cc02c662ac779ae14f
BLAKE2b-256 4ff0f0ff36eadd5280051f6f7c92c9136502ab82625d178b46e3bb3b24408f41

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_types-2.0.0a3-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