cayu.mcp definitions
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
DEFAULT_MCP_CLIENT_NAME
Section titled “DEFAULT_MCP_CLIENT_NAME”from cayu.mcp import DEFAULT_MCP_CLIENT_NAMEDEFAULT_MCP_CLIENT_NAME = 'cayu'Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_CLIENT_VERSION
Section titled “DEFAULT_MCP_CLIENT_VERSION”from cayu.mcp import DEFAULT_MCP_CLIENT_VERSIONDEFAULT_MCP_CLIENT_VERSION = __version__Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_CONTAINMENT_KILL_TIMEOUT_S
Section titled “DEFAULT_MCP_CONTAINMENT_KILL_TIMEOUT_S”from cayu.mcp import DEFAULT_MCP_CONTAINMENT_KILL_TIMEOUT_SDEFAULT_MCP_CONTAINMENT_KILL_TIMEOUT_S = 2.0Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_CONTAINMENT_STARTUP_TIMEOUT_S
Section titled “DEFAULT_MCP_CONTAINMENT_STARTUP_TIMEOUT_S”from cayu.mcp import DEFAULT_MCP_CONTAINMENT_STARTUP_TIMEOUT_SDEFAULT_MCP_CONTAINMENT_STARTUP_TIMEOUT_S = 5.0Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_CONTAINMENT_TERM_TIMEOUT_S
Section titled “DEFAULT_MCP_CONTAINMENT_TERM_TIMEOUT_S”from cayu.mcp import DEFAULT_MCP_CONTAINMENT_TERM_TIMEOUT_SDEFAULT_MCP_CONTAINMENT_TERM_TIMEOUT_S = 2.0Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_MAX_LIST_ITEMS
Section titled “DEFAULT_MCP_MAX_LIST_ITEMS”from cayu.mcp import DEFAULT_MCP_MAX_LIST_ITEMSDEFAULT_MCP_MAX_LIST_ITEMS = 10000Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_MAX_LIST_PAGES
Section titled “DEFAULT_MCP_MAX_LIST_PAGES”from cayu.mcp import DEFAULT_MCP_MAX_LIST_PAGESDEFAULT_MCP_MAX_LIST_PAGES = 100Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_MAX_MESSAGE_BYTES
Section titled “DEFAULT_MCP_MAX_MESSAGE_BYTES”from cayu.mcp import DEFAULT_MCP_MAX_MESSAGE_BYTESDEFAULT_MCP_MAX_MESSAGE_BYTES = 16 * 1024 * 1024Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_MAX_RESPONSE_BYTES
Section titled “DEFAULT_MCP_MAX_RESPONSE_BYTES”from cayu.mcp import DEFAULT_MCP_MAX_RESPONSE_BYTESDEFAULT_MCP_MAX_RESPONSE_BYTES = 64 * 1024 * 1024Release source · Runtime guarantees · Capability guides
DEFAULT_MCP_REQUEST_TIMEOUT_S
Section titled “DEFAULT_MCP_REQUEST_TIMEOUT_S”from cayu.mcp import DEFAULT_MCP_REQUEST_TIMEOUT_SDEFAULT_MCP_REQUEST_TIMEOUT_S = 30.0Release source · Runtime guarantees · Capability guides
MCP_MODERN_PROTOCOL_VERSION
Section titled “MCP_MODERN_PROTOCOL_VERSION”from cayu.mcp import MCP_MODERN_PROTOCOL_VERSIONMCP_MODERN_PROTOCOL_VERSION = '2026-07-28'Release source · Runtime guarantees · Capability guides
MCP_PROTOCOL_VERSION
Section titled “MCP_PROTOCOL_VERSION”from cayu.mcp import MCP_PROTOCOL_VERSIONMCP_PROTOCOL_VERSION = '2025-06-18'Release source · Runtime guarantees · Capability guides
McpCallDeadlineExceededError
Section titled “McpCallDeadlineExceededError”from cayu.mcp import McpCallDeadlineExceededErrorRaised when an MCP exchange exceeds its absolute deadline.
Bases: TimeoutError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
McpIdleTimeoutError
Section titled “McpIdleTimeoutError”from cayu.mcp import McpIdleTimeoutErrorRaised when an MCP transport stops making inbound progress.
Bases: TimeoutError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
McpMessageTooLargeError
Section titled “McpMessageTooLargeError”from cayu.mcp import McpMessageTooLargeErrorRaised when one JSON-RPC message or SSE event exceeds its byte limit.
Bases: McpProtocolError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
McpPeerClosedError
Section titled “McpPeerClosedError”from cayu.mcp import McpPeerClosedErrorRaised when the peer closes before completing the expected response.
Bases: McpProtocolError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
McpProtocolEra
Section titled “McpProtocolEra”from cayu.mcp import McpProtocolEraMCP wire era selected once for one transport connection.
Bases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
LEGACY |
class attribute |
'legacy' |
MODERN_2026_07_28 |
class attribute |
MCP_MODERN_PROTOCOL_VERSION |
Release source · Runtime guarantees · Capability guides
McpProtocolError
Section titled “McpProtocolError”from cayu.mcp import McpProtocolErrorRaised when an MCP server violates the expected JSON-RPC contract.
Bases: RuntimeError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
McpResponseTooLargeError
Section titled “McpResponseTooLargeError”from cayu.mcp import McpResponseTooLargeErrorRaised when an aggregate HTTP response exceeds its byte limit.
Bases: McpProtocolError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
McpTransportLimits
Section titled “McpTransportLimits”from cayu.mcp import McpTransportLimitsAllocation and timing bounds for one MCP transport exchange.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
max_message_bytes |
int |
DEFAULT_MCP_MAX_MESSAGE_BYTES |
max_response_bytes |
int |
DEFAULT_MCP_MAX_RESPONSE_BYTES |
idle_timeout_s |
float |
30.0 |
total_call_timeout_s |
float |
30.0 |
validate_byte_limit (method)
Section titled “validate_byte_limit (method)”McpTransportLimits.validate_byte_limit(value: object, info) -> intvalidate_timeout (method)
Section titled “validate_timeout (method)”McpTransportLimits.validate_timeout(value: object, info) -> floatvalidate_response_limit (method)
Section titled “validate_response_limit (method)”McpTransportLimits.validate_response_limit() -> McpTransportLimitsRelease source · Runtime guarantees · Capability guides
StdioMcpProcessLifetime
Section titled “StdioMcpProcessLifetime”from cayu.mcp import StdioMcpProcessLifetimeOwnership policy for a local stdio MCP subprocess.
Bases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
PARENT_DEATH_CONTAINMENT |
class attribute |
'parent_death_containment' |
GRACEFUL_CLEANUP |
class attribute |
'graceful_cleanup' |
PERSISTENT_DETACHED |
class attribute |
'persistent_detached' |
Release source · Runtime guarantees · Capability guides
SUPPORTED_MCP_PROTOCOL_VERSIONS
Section titled “SUPPORTED_MCP_PROTOCOL_VERSIONS”from cayu.mcp import SUPPORTED_MCP_PROTOCOL_VERSIONSSUPPORTED_MCP_PROTOCOL_VERSIONS = frozenset({*SUPPORTED_LEGACY_MCP_PROTOCOL_VERSIONS, MCP_MODERN_PROTOCOL_VERSION})