cayu.sessions.McpManifestBaseline
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import McpManifestBaselineAuthoritative 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.
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 |
|---|---|---|
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 |
validate_hashes (method)
Section titled “validate_hashes (method)”McpManifestBaseline.validate_hashes(value: str, info) -> strvalidate_reference_ids (method)
Section titled “validate_reference_ids (method)”McpManifestBaseline.validate_reference_ids(value: str, info) -> strcopy_tools (method)
Section titled “copy_tools (method)”McpManifestBaseline.copy_tools(value, info) -> tuple[dict[str, Any], ...]normalize_accepted_at (method)
Section titled “normalize_accepted_at (method)”McpManifestBaseline.normalize_accepted_at(value: datetime) -> datetimevalidate_manifest_evidence (method)
Section titled “validate_manifest_evidence (method)”McpManifestBaseline.validate_manifest_evidence() -> McpManifestBaseline