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 the LLM/UI for selection.

ConnectResult

Result returned by the connection tool.

ClarificationOption

One selectable answer for a clarification question.

Clarification

Question returned when code generation needs more information.

CodegenResult

Result of a CFX codegen call.

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 LLM clients see. Keeping them small, JSON-friendly, and stable is what makes orchestration reliable.