The errors.py module#

Summary#

MechanicalMCPError

Base error carrying a stable machine-readable error code.

NotConnectedError

Raised when an operation requires an active Mechanical connection.

InvalidArgumentsError

Raised when tool arguments are invalid or unusable.

UpstreamError

Raised when Mechanical or a dependent service cannot complete an operation.

Description#

Structured errors returned by PyMechanical MCP tools.