PyMechanicalMCP#

class ansys.mechanical.mcp.server.PyMechanicalMCP(name: str = 'PyMechanical MCP Server', *args, **kwargs)#

Bases: ansys.common.mcp.PyAnsysBaseMCP

FastMCP server for managing Mechanical instances.

Overview#

create_context

Create a new application context.

product_startup

Allow PyMechanical-MCP specific startup actions.

product_cleanup

Perform cleanup actions for Mechanical instances on shutdown.

Import detail#

from ansys.mechanical.mcp.server import PyMechanicalMCP

Method detail#

PyMechanicalMCP.create_context() PyMechanicalAppContext#

Create a new application context.

Returns:
PyMechanicalAppContext

Application context for managing Mechanical instances.

PyMechanicalMCP.product_startup()#

Allow PyMechanical-MCP specific startup actions.

PyMechanicalMCP.product_cleanup()#

Perform cleanup actions for Mechanical instances on shutdown.