The ansys.fluent.mcp library#

Summary#

common

Shared infrastructure for all Fluid’s MCP leaves.

solve

Solve leaf, which provides Fluent solver live-context and execution tools.

__main__

Entry point for running the MCP server as a module.

server

Lifespan and CLI entry for the MCP server with startup options.

FluidsMCPConfig

Resolved configuration values.

ConnectResult

Result of a connect call.

RunCodeResult

Result of a code execution call.

SolveMCP

Solve MCP leaf: Fluent solver live-context and execution tools.

ConfigError

Raised when an environment variable is set to an invalid value.

BackendUnavailableError

Raised when a backend call fails because the backend is unavailable.

DiscoveryError

Raised when a backend discovery operation fails.

FluidsMCPError

Base class for typed errors raised by leaves and backends.

InvalidArgumentsError

Raised when a backend call fails due to invalid arguments.

NotConnectedError

Raised when a backend call fails because the backend is not connected.

UpstreamError

Raised when a backend call fails due to an upstream error (for example, a network issue).

load_config

Read and validate every recognized environment variable.

validate_config

Validate configuration.

__version__

PyFluent MCP version.

Description#

ANSYS Fluent MCP server.

A Model Context Protocol (MCP) server that lets AI assistants drive an ANSYS Fluent solver session through PyFluent. It load cases and meshes, inspects the live settings tree, validates and executes settings and API code, runs iterations, and queries results.

This package is the open-source distribution of the Fluent Solve MCP leaf. The following public re-exports cover the server class plus the shared result models, errors, and configuration used by integrators.

Module detail#

mcp.__version__#

PyFluent MCP version.