Skip to content

cayu.sessions.McpManifestBaseline

Part of cayu.sessions.base. Read the Python API overview and install the required extra.

from cayu.sessions import McpManifestBaseline

Authoritative accepted MCP manifest for one durable history identity.

tools and exposed_tools contain only fixed-size tool_id and contract_hash SHA-256 evidence. Raw MCP or Cayu tool names do not cross this durable boundary.

Bases: BaseModel.

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
history_key str required
generation StrictInt Field(ge=1)
manifest_identity str required
manifest_hash str required
source_manifest_hash str required
server_hash str required
tools tuple[dict[str, Any], ...] Field(default_factory=tuple, max_length=_MCP_MANIFEST_BASELINE_MAX_TOOLS)
exposed_tools tuple[dict[str, Any], ...] Field(default_factory=tuple, max_length=_MCP_MANIFEST_BASELINE_MAX_TOOLS)
accepted_session_ref str required
accepted_event_id str Field(max_length=EVENT_ID_MAX_CHARS)
accepted_at datetime required
McpManifestBaseline.validate_hashes(value: str, info) -> str
McpManifestBaseline.validate_reference_ids(value: str, info) -> str
McpManifestBaseline.copy_tools(value, info) -> tuple[dict[str, Any], ...]
McpManifestBaseline.normalize_accepted_at(value: datetime) -> datetime
McpManifestBaseline.validate_manifest_evidence() -> McpManifestBaseline

Release source · Runtime guarantees · Capability guides