The server.py module#

Summary#

PyMAPDLAppContext

Application context with typed dependencies and CLI options.

PyMAPDLMCP

FastMCP server for managing MAPDL instances.

SessionContext

Session context for storing CLI options.

launcher

Entry point for the MCP server.

Description#

Lifespan and CLI entry for the MCP server with startup options.

Module detail#

server.launcher(argv: list[str] | None = None) None#

Entry point for the MCP server.

Parameters:
argvlist[str] | None

Optional list of arguments for testing. Defaults to sys.argv[1:].

server.app#
server.session#