The models.py module#

Summary#

CapabilityInfo

Static description of one tool/feature exposed by a leaf.

SessionStatus

Result of session_status - safe to call before connect.

ConnectionTarget

Minimal connection descriptor surfaced to clients for selection.

ConnectResult

Result returned by the connection tool.

RunCodeResult

Result returned after validating or executing Python code.

RemediationResult

Markdown response from a remediation/help endpoint (e.g. Prime meshing).

TypedError

Generic error envelope used when a tool can’t return its native shape.

Description#

Typed contracts shared by PyCFX-MCP.

These are the response shapes that MCP clients see. Keeping them small, JSON-friendly, and stable is what makes orchestration reliable.