AP

ansys/pyansys-common-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 5 forks 品質 67 トレンド 30Apache-2.0

PyAnsys 共通 MCP

概要

PyAnsys Common MCP は、PyAnsys ライブラリ用のモデルコンテキストプロトコル (MCP) サーバを構築するためのインフラストラクチャを提供します。 このパッケージは、AIアシスタント(Claude、ChatGPTなど)がPyAnsysライブラリを通じてAnsys製品と相互作用することを可能にするMCPサーバーを作成する基盤を提供します。 - : 複数のAIリクエスト間でステートフルなコード実行を維持します。 - : 起動、クリーンアップ、エラーを自動的に処理します。 - : ベースクラスとパターンを使用して、製品固有の実装を行います。 - : MCP プロトコルに干渉しない設定済みのロギングを使用します。 ansys.common.mcp パッケージは現在、Windows、Mac OS、LinuxでPython 3.12からPython 3.14をサポートしています.

概要(AI 翻訳)

PyAnsys Common MCP は、PyAnsys ライブラリ用のモデルコンテキストプロトコル (MCP) サーバを構築するためのインフラストラクチャを提供します。

概要

このパッケージは、AIアシスタント(Claude、ChatGPTなど)がPyAnsysライブラリを通じてAnsys製品と相互作用することを可能にするMCPサーバーを作成する基盤を提供します。

主な機能:

  • 永続的なPythonセッション: 複数のAIリクエスト間でステートフルなコード実行を維持します。
  • ライフサイクル管理: 起動、クリーンアップ、エラーを自動的に処理します。
  • 拡張可能なアーキテクチャ: ベースクラスとパターンを使用して、製品固有の実装を行います。 -インフラのログ作成: MCP プロトコルに干渉しない事前設定済みのロギングを使用します。

インストール

ユーザー向け

[[T0] パッケージは現在、Python 3.12 をサポートしています Windows、Mac OS、LinuxでPython 3.14

このコマンドで最新のパッケージをインストールします。

または、最新のインストール PyAnsys Common MCP GitHub パッケージ このコマンドを使って:

##開発者向け

PyAnsys Common MCP やカスタムサーバーの作成に貢献している場合は、開発者モードでパッケージをインストールします。

クイックスタート

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

PyAnsys Common MCP

PyAnsys Common MCP provides the infrastructure for building Model Context Protocol (MCP) servers for PyAnsys libraries.

Overview

This package provides the foundation for creating MCP servers that enable AI assistants (like Claude, ChatGPT) to interact with Ansys products through PyAnsys libraries.

Key features:

  • Persistent Python sessions: Maintains stateful code execution across multiple AI requests.
  • Lifecycle management: Handles startup, cleanup, and errors automatically.
  • Extensible architecture: Uses base classes and patterns for product-specific implementations.
  • Logging infrastructure: Uses pre-configured logging that does not interfere with the MCP protocol.

Installation

For users

The ansys.common.mcp package currently supports Python 3.12 through Python 3.14 on Windows, Mac OS, and Linux.

Install the latest package for use with this command:

pip install ansys-common-mcp

Alternatively, install the latest PyAnsys Common MCP GitHub package with this command:

pip install git+https://github.com/ansys/pyansys-common-mcp.git

For developers

If you are contributing to PyAnsys Common MCP or creating custom servers, install the package in developer mode:

# Clone the repository
git clone https://github.com/ansys/pyansys-common-mcp.git
cd pyansys-common-mcp

# Install in editable mode with development dependencies
pip install -e .[dev]

# Or install documentation dependencies for building documentation
pip install -e .[doc]

Quick start

To create an MCP server for your PyAnsys library, follow these three main steps:

  1. Define your custom context: Extend the PyAnsysBaseAppContext dataclass to store the product-specific state.
  2. Implement your MCP server: Extend the PyAnsysBaseMCP base class with startup and cleanup logic.
  3. Create MCP tools: Define tools that interact with your product.

Real-world example

For a complete, production-ready implementation, see the PyMAPDL-MCP repository.

Resources

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →