Configuration#
You can configure PyMechanical-MCP through command-line flags and environment variables.
Command-line tool startup flags#
Flag |
Description |
|---|---|
|
MCP transport (default |
|
HTTP bind address and port for |
|
Mechanical endpoint for |
|
Connection to Mechanical on startup. Locks lifecycle tools. |
|
gRPC mode: |
|
Path to mTLS certificates directory ( |
|
Comma-separated allowed origins for HTTP transport. |
|
AALI-specific runtime behavior. |
Environment variables#
Variable |
Description |
|---|---|
|
Default gRPC mode when |
|
Default certificate directory when |
|
Preferred endpoint values in containerized deployments. |
|
MCP server log verbosity. |
Connection-lock behavior#
When you use --connect-on-startup, the server connects to Mechanical
during startup and then disables:
launch_mechanicalconnect_to_mechanicaldisconnect_from_mechanical
This keeps the active session stable for clients that expect a fixed connection lifecycle.
Next steps#
For install and startup examples, see Installation.
For client setup, see IDE and client configuration.