The ansys.lumerical.mcp library#

Summary#

contexts

Curated Lumerical scripting guidance returned by get_guidelines_for.

__main__

Module entrypoint: python -m ansys.lumerical.mcp.

config

Runtime configuration for the PyLumerical MCP server.

context

Application context for the PyLumerical MCP server.

persistent_session

Lumerical-tuned PersistentPythonSession.

prompts

System-prompt template registered with FastMCP’s prompt system.

server

PyLumerical MCP server entry point.

session_helpers

Pure helpers for building Python snippets and parsing subprocess results.

startup_code

Bootstrap code fed into the framework’s persistent Python subprocess.

tools

The MCP tools exposed by the PyLumerical MCP server.

__version__

PyLumerical MCP version.

app

Description#

PyLumerical MCP Server.

Model Context Protocol server that exposes Ansys Lumerical (via PyLumerical) to LLM agents. Built on top of ansys-common-mcp’s PyAnsysBaseMCP, extended to support multiple concurrent named Lumerical sessions hosted inside the framework’s persistent Python subprocess.

Module detail#

mcp.__version__#

PyLumerical MCP version.