
jianzhichun/abaqus-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
jianzhichun/abaqus-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/jianzhichun/abaqus-mcp-server.
Обзор
jianzhichun/abaqus-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/jianzhichun/abaqus-mcp-server.
Обзор (машинный перевод)
Английский | 中文
ABAQUS MCP Server для графического скриптинга
Сервер MCP (Model Context Protocol), разработанный для взаимодействия с уже работающим графическим интерфейсом пользователя (GUI) Abaqus/CAE. Он позволяет выполнять скрипты на Python в среде Abaqus и получать сообщения из журнала/области сообщений Abaqus — всё это с помощью инструментов MCP.
Этот сервер использует техники автоматизации графического интерфейса (pywinauto) для управления приложением Abaqus/CAE.
Особенности
- Выполнение скриптов в GUI: Выполняет скрипты на Python путём автоматизации меню «File -> Run Script…» в активной сессии Abaqus/CAE.
- Получение журнала сообщений: Попытки скрепить текстовое содержимое из области отображения сообщений/журналов Abaqus/CAE.
- MCP Interface: Предоставляет функциональность стандартных MCP-инструментов и подсказок для удобной интеграции с LLM-агентами и другими MCP-совместимыми клиентами.
- Работает на существующем интерфейсе: не запускает и не останавливает Abaqus/CAE; требуется, чтобы сессия Abaqus/CAE уже была открыта и работала.
Требования к системе
- Операционная система: Windows (благодаря взаимодействию
pywinautoи интерфейса Abaqus). - Python: Python 3.7+.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
English | 中文
ABAQUS MCP Server for GUI Scripting
An MCP (Model Context Protocol) server designed to interact with an already running Abaqus/CAE Graphical User Interface (GUI). It allows for the execution of Python scripts within the Abaqus environment and retrieval of messages from the Abaqus message log/area, all through MCP tools.
This server uses GUI automation techniques (pywinauto) to control the Abaqus/CAE application.
Features
- Script Execution in GUI: Executes Python scripts by automating the “File -> Run Script…” menu in an active Abaqus/CAE session.
- Message Log Retrieval: Attempts to scrape text content from the Abaqus/CAE message/log display area.
- MCP Interface: Exposes functionalities as standard MCP tools and prompts for easy integration with LLM agents and other MCP-compatible clients.
- Operates on Existing GUI: Does not start or stop Abaqus/CAE; it requires an Abaqus/CAE session to be already open and running.
System Requirements
- Operating System: Windows (due to
pywinautoand Abaqus GUI interaction). - Python: Python 3.7+.
- Abaqus/CAE: A compatible version of Abaqus/CAE must be installed and already running with its GUI open when using this server.
Python Dependencies
Install the required Python packages using pip:
pip install -r requirements.txt
(See requirements.txt for the list of dependencies, primarily mcp[cli], pywinauto, pygetwindow, psutil, pywin32.)
Configuration
- Ensure Abaqus/CAE is Running: Before starting this MCP server, make sure the Abaqus/CAE application is open on your desktop, with the GUI loaded and responsive.
- Accessibility: Ensure no other modal dialogs are blocking the Abaqus/CAE interface when the server attempts to interact with it.
Usage
Starting the MCP Server
Navigate to the server’s directory and run:
python mcp_server.py
The server will start and be ready to accept MCP requests.
MCP Tools Provided
-
execute_script_in_abaqus_gui- Description: Executes a given Python code string within the active Abaqus/CAE GUI session. It automates the ‘File -> Run Script…’ menu process.
- Argument:
python_code (str): The Python script content (Abaqus Scripting Interface commands) to be executed.
- Returns:
str- A message indicating the outcome of the script submission attempt (e.g., “Script submitted for execution…”). - Important: This tool does not return the direct output or error messages from the script’s execution within Abaqus. To see the script’s actual outcome, you must use the
get_abaqus_gui_message_logtool after allowing time for the script to run.
-
get_abaqus_gui_message_log- Description: Attempts to retrieve the text content from the Abaqus/CAE message/log area (usually found at the bottom of the main GUI window).
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →