Best practices#
Keep MCP requests narrow and explicit. Ask for one workflow action, state query, or code-generation task at a time so the server can return bounded context.
Suggested workflow#
Check
session_statusbefore you run CFX-specific tools.Use
connectto attach to or start the required CFX backend.Use
cfx_model_contextto inspect names, state, or API help before you make changes.Use
cfx_workflowfor higher-level CFX-Pre, CFX-Solver, and CFD-Post actions.Use
validate_codebefore you run generated snippets.
Generated code#
Review generated Python before execution, especially when it modifies solver setup, writes files, or launches product processes. Prefer small snippets that you can validate and rerun safely.
Session state#
CFX workflows depend on external product state, files, and licensing. Keep input paths explicit, preserve solver output files, and disconnect sessions when you no longer need them.