PyAEDTAppContext#
- class ansys.aedt.mcp.server.PyAEDTAppContext#
Bases:
ansys.common.mcp.context.PyAnsysBaseAppContextApplication context with typed dependencies and CLI options.
- Attributes:
- desktop
Optional[Any] AEDT instance connection. Using
Anyavoids type issues.- transport_type
str Transport type for MCP server. Options are
"stdio"or"http".- aedt_machine
Optional[str] Machine name or IP address for the AEDT connection.
- aedt_port
Optional[int] Port number for the AEDT gRPC connection.
- aedt_version
Optional[str] Version of AEDT to use.
- non_graphicalbool
Whether to run AEDT in non-graphical mode.
- connect_on_startupbool
Whether to attempt AEDT connection on MCP startup.
- include_context_toolsbool
Whether to register optional context helper tools.
- dynamic_tool_discoverybool
Whether tool visibility should be dynamically gated by AEDT connection state.
- http_host
str Host address for HTTP transport.
- http_port
int Port number for HTTP transport.
- cors_origins
Optional[list[str]] List of allowed CORS origins for HTTP transport.
- desktop
Overview#
Default AEDT instance for backward compatibility. |
Import detail#
from ansys.aedt.mcp.server import PyAEDTAppContext