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#

  1. Check session_status before you run CFX-specific tools.

  2. Use connect to attach to or start the required CFX backend.

  3. Use cfx_model_context to inspect names, state, or API help before you make changes.

  4. Use cfx_workflow for higher-level CFX-Pre, CFX-Solver, and CFD-Post actions.

  5. Use validate_code before 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.