Skip to main content
Glama

su2-mcp

su2-mcp は、MCP サーバーを介して SU2 セッションのライフサイクル、設定編集、ソルバー実行、結果の検査を公開します。

機能

  • セッションごとの作業ディレクトリによるセッションライフサイクル管理。

  • SU2 の .cfg ファイルの読み取り、解析、更新のための設定ヘルパー。

  • メッシュのアップロードと MESH_FILENAME の自動同期。

  • gmsh によるオプションの STEP -> SU2 メッシュ変換 (generate_mesh_from_step)。

  • タイムアウト/バイナリ欠落処理を備えた SU2_CFD および SU2_DEF 用ソルバーラッパー。

  • 結果ファイルの一覧表示、base64 ダウンロード、履歴 CSV の解析、サーフェスサンプリング。

  • オープンエンドなメッシュリファインメント (2026-06-21): CPACS アダプタは、3 つの名前付きプリセット (laptop/workstation/industry) に加えて、オプションの surface_densityfarfield_factor のオーバーライドを公開し、実際の mesh_n_elem セル数と cauchy_triggered フラグを報告するため、呼び出し側は収束するまでプラトーを続けるループを構築できます (cmudrc/agent-mcp 内の SKILL_OPEN_ENDED_MESH.md スキルと scripts/run_converged_su2.py を参照)。

Related MCP server: tigl-mcp

インストール

python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]

サーバーの実行

StdIO (デフォルト)

su2-mcp --transport stdio

HTTP トランスポート

su2-mcp --transport http --host 0.0.0.0 --port 8002 --path /mcp
su2-mcp --transport streamable-http --host 0.0.0.0 --port 8002 --streamable-http-path /mcp

Server-Sent Events (SSE)

su2-mcp --transport sse --host 0.0.0.0 --port 8000 --mount-path / --sse-path /sse

プログラムによるエントリポイントは su2_mcp.main から利用できます。

開発

make dev
make lint
make type
make test
make docs

完全なローカル CI スタイルのゲート:

make ci

SU2 バイナリの確認

MCP ツール get_su2_status は、一般的な SU2 バイナリ (SU2_CFDSU2_CFD_MPISU2_DEF) の利用可能性を報告します。

オプションの SU2 依存関係エクストラ

pip install .[su2]

システム依存関係

Python パッケージは純粋な Python ですが、一部のツールは外部の実行可能ファイルに依存しています:

  • run_su2_solver / generate_deformed_mesh: PATH に SU2 バイナリが必要です

  • generate_mesh_from_step: PATHgmsh が必要です

Shared-CPACS 統合

この MCP には、SU2 を shared-CPACS 航空機解析パイプラインに橋渡しする CPACS アダプタ (src/su2_mcp/cpacs_adapter.py) が含まれています。

機能

アダプタは CPACS から参照形状と飛行条件を読み取り、Gmsh を介して STEP ファイルをメッシュ化し、実際の SU2_CFD オイラーシミュレーションを実行し、history.csv から CL/CD を解析し、空力結果を //analysisResults/aero に書き込みます。

方向

XPath

読み取り

.//vehicles/aircraft/model/reference, .//analysisResults/tigl

書き込み

.//vehicles/aircraft/model/analysisResults/aero (CL, CD, L/D, solver info)

パイプラインの一部として実行

# Classic preset path
python pipeline/shared_cpacs_orchestrator.py D150_v30.xml \
    --mcps tigl su2 pycycle nseg --su2-preset workstation

# Custom one-off density (open-ended override)
python pipeline/shared_cpacs_orchestrator.py D150_v30.xml \
    --mcps tigl su2 --su2-density 120

# Converged delivery: refine surface_density until CL/CD plateau
python pipeline/shared_cpacs_orchestrator.py D150_v30.xml \
    --mcps tigl su2 --su2-converge

完全なパイプラインのドキュメント、バージョン管理の詳細、インストール手順については、cmudrc/aircraft-analysis を参照してください。

関連 MCP サーバー

MCP

リポジトリ

TiGL (geometry)

cmudrc/tigl-mcp

pyCycle (engine cycle)

cmudrc/pycycle-mcp

Mission, segment/Breguet

cmudrc/nseg-mcp

Mission, trajectory-level

cmudrc/aviary-cpacs-mcp

メンテナー

Mayank Dixit (@Kugel-Blitz-13), Carnegie Mellon University — mayankd@cmu.edu Christopher McComb, Carnegie Mellon University — Design Research Collective

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
16hResponse time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides MCP tools for CPACS-oriented TiGL workflows, enabling lifecycle management, inspection, export, and parameter manipulation of aircraft geometry models without native geometry runtimes.
    3
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables to interact with Abaqus FEA software through an MCP bridge, supporting connection checks, script execution, model queries, job submission, and simulation automation.
    2
  • A
    license
    B
    quality
    A
    maintenance
    Enables natural language-driven ANSYS simulations (Fluent, Mechanical, Geometry) with automatic TUI script generation for reproducibility.
    41
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…

  • Real FEA on CAD parts: validated setups, stress, safety factor, natural frequencies

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmudrc/su2-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server