The server.py module#
Summary#
MCP server exposing Ansys Lumerical (via PyLumerical) to LLM agents. |
Description#
PyLumerical MCP server entry point.
Defines PyLumericalMCP, a subclass of
ansys.common.mcp.PyAnsysBaseMCP that:
Replaces the framework’s default subprocess startup code with one that does not assume Matplotlib/PyVista/PIL are installed (they aren’t, in baseline dependencies), but seeds the Lumerical session registry and helpers.
Registers the MCP tools declared in
ansys.lumerical.mcp.tools.Cleans up any open Lumerical sessions on shutdown.
Module detail#
- server.logger#
- server.config#
- server.app#