شعار Abaqus MCP Plugin

Abaqus MCP Plugin

المجتمع
Cai-aa

A plugin that enables communication between Abaqus/CAE and external AI assistants (or any MCP client) via file-based IPC.

الناشرCai-aa
المستودعabaqus-mcp
اللغةPython
التفريعات
25
النجوم
282
الأدوات المتاحة
0
نوع نقل البياناتstdio
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Abaqus MCP Plugin إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 282، والنسخ المتفرعة: 25 في المستودع المرتبط.

Abaqus MCP Plugin v4.0

A plugin that enables communication between Abaqus/CAE and external AI assistants (or any MCP client) via file-based IPC.

What's New in v4.0

  • Job management — list and submit Abaqus jobs remotely
  • ODB inspection — open ODB files read-only and query steps, frames, instances
  • Viewport capture — screenshot any Abaqus viewport as base64 image
  • Richer model info — now includes loads, BCs, interactions, and assembly instances
  • MCP resource — abaqus://status resource for real-time plugin status
  • Stale command cleanup — automatically removes commands older than 2 minutes
  • Logging — all operations logged to ~/.abaqus-mcp/mcp.log
  • Version tracking — status.json and ping responses include plugin version
  • GUI Status button — check plugin state from the Plug-ins menu

Architecture

text
┌─────────────┐  MCP protocol   ┌───────────────┐  file IPC   ┌──────────────┐
│  MCP Client  │ ──────────────> │  mcp_server.py │ ─────────> │ Abaqus/CAE   │
│  (Cursor AI) │ <────────────── │  (FastMCP)     │ <───────── │ (plugin.py)  │
└─────────────┘                  └───────────────┘             └──────────────┘
                                        │
                                   commands/*.json ──>  (plugin reads & deletes)
                                   results/*.json  <──  (plugin writes)
                                   status.json     <──  (heartbeat every 2s)

Features

  • Execute Python scripts in Abaqus remotely
  • Query model information (parts, materials, steps, loads, BCs, interactions)
  • List and submit analysis jobs
  • Inspect ODB result files
  • Capture viewport screenshots
  • Simple file-based communication (no sockets required)
  • Non-blocking background mode (GUI stays responsive)
  • GUI menu entries for start / stop / status control
  • Works with any MCP-compatible client (Cursor, Claude Desktop, etc.)

Installation

1. Clone the repository

bash
git clone https://github.com/Cai-aa/abaqus-mcp.git ~/.abaqus-mcp

2. Install Python dependencies (for the MCP server)

bash
pip install mcp

3. (Optional) Auto-load plugin on Abaqus startup

powershell
# Windows
copy "$env:USERPROFILE\.abaqus-mcp\abaqus_v6.env.example" "$env:USERPROFILE\abaqus_v6.env"
bash
# Linux/Mac
cp ~/.abaqus-mcp/abaqus_v6.env.example ~/abaqus_v6.env

4. (Optional) Install GUI plugin menu

powershell
# Windows
Copy-Item -Recurse "$env:USERPROFILE\.abaqus-mcp\abaqus_plugins\mcp_control" "$env:USERPROFILE\abaqus_plugins\mcp_control"
bash
# Linux/Mac
cp -r ~/.abaqus-mcp/abaqus_plugins/mcp_control ~/abaqus_plugins/mcp_control

5. Configure your MCP client

Add to your Cursor / Claude Desktop MCP settings (.mcp.json):

json
{
  "mcpServers": {
    "abaqus-mcp-server": {
      "command": "python",
      "args": ["C:/Users/YourUsername/.abaqus-mcp/mcp_server.py"]
    }
  }
}

Usage

Start MCP (in Abaqus)

Experimental — non-blocking background thread (may be unstable on some Abaqus builds):

python
mcp_start()  # GUI remains responsive if background worker is supported

Menu: Plug-ins → MCP → Start MCP (Background)

Alternative — cooperative loop (mostly responsive):

python
mcp_coop_loop()

Menu: Plug-ins → MCP → Start MCP (Cooperative)

Alternative — blocking mode:

python
mcp_loop()  # blocks console

Menu: Plug-ins → MCP → Start MCP (Blocking)

ModeGUI ResponsiveStop Method
Background (mcp_start())Yes (if supported)mcp_stop() or menu
Cooperative (mcp_coop_loop())Mostly yesmcp_stop() or stop.flag
Blocking (mcp_loop())Nostop.flag / interrupt

For maximum reliability, use mcp_loop() in production sessions.

Check Status

python
mcp_status()  # prints status to console

Menu: Plug-ins → MCP → MCP Status

Stop MCP

Option 1 — GUI menu: Plug-ins → MCP → Stop MCP

Option 2 — Abaqus console:

python
mcp_stop()

Option 3 — PowerShell:

powershell
echo $null > "$env:USERPROFILE\.abaqus-mcp\stop.flag"

Option 4 — Run stop_mcp.py from any Python environment.

MCP Tools

These tools are exposed to MCP clients via mcp_server.py:

ToolDescription
check_abaqus_connectionVerify Abaqus is running and plugin is responding
execute_scriptExecute a Python script inside Abaqus/CAE
get_model_infoGet model details (parts, materials, steps, loads, BCs, etc.)
list_jobsList all analysis jobs in the session
submit_jobSubmit a job by name and wait for completion
get_odb_infoOpen an ODB file read-only and return metadata
get_viewport_imageCapture a viewport screenshot as base64
pingTest connection (returns version info)

MCP Resources

URIDescription
abaqus://statusReal-time plugin status (running/stopped, version, uptime)

File-Based IPC Protocol

Write a JSON command file into ~/.abaqus-mcp/commands/:

python
import json, os, time

command = {
    'id': 'my_command',
    'type': 'execute_script',
    'script': 'print("Hello from Abaqus!")',
    'timestamp': time.time(),
}

cmd_path = os.path.expanduser('~/.abaqus-mcp/commands/cmd_my_command.json')
with open(cmd_path, 'w') as f:
    json.dump(command, f)

Result will appear at ~/.abaqus-mcp/results/my_command.json.

Command Types

TypeParametersDescription
execute_scriptscript (str)Execute Python script in Abaqus
get_model_info—Get current model information
list_jobs—List all defined jobs
submit_jobjob_name (str)Submit and wait for a job
get_odb_infoodb_path (str)Read ODB metadata
get_viewport_imageviewport_name, formatCapture viewport screenshot
ping—Test connection
stop—Request loop stop

Directory Structure

text
~/.abaqus-mcp/
├── abaqus_mcp_plugin.py      # Abaqus-side plugin (runs inside CAE)
├── mcp_server.py              # MCP server (runs externally)
├── stop_mcp.py                # Helper to send stop signal
├── abaqus_v6.env.example      # Auto-load config template
├── .mcp.json                  # MCP client config example
├── abaqus_plugins/
│   └── mcp_control/
│       ├── __init__.py
│       └── mcp_control_plugin.py
├── commands/                  # Incoming command files
├── results/                   # Outgoing result files
├── scripts/                   # Temporary script files
├── screenshots/               # Temporary viewport captures
├── status.json                # Heartbeat status (updated every 2s)
├── mcp.log                    # Operation log
└── stop.flag                  # Stop signal file

Troubleshooting

  • Plugin says "running" but no commands are consumed:
    1. Run mcp_stop() then mcp_start() again
    2. Check ~/.abaqus-mcp/status.json — timestamp should update every ~2s
    3. Check ~/.abaqus-mcp/mcp.log for errors
  • Abaqus uses a different home directory:
    python
    import os; os.environ['ABAQUS_MCP_HOME'] = r'C:\Users\YourName\.abaqus-mcp'
    Set this before loading the plugin.
  • Commands timing out:
    • Stale commands (>2 min) are auto-cleaned
    • Ensure the plugin is in running state via mcp_status()
  • GUI plugin not showing:
    • Verify ~/abaqus_plugins/mcp_control/ exists and contains mcp_control_plugin.py
    • Restart Abaqus/CAE

License

MIT License

التثبيت

TypingMind
{
  "mcpServers": {
    "abaqus-mcp": {
      "command": "python",
      "args": [
        "C:/Users/YourUsername/.abaqus-mcp/mcp_server.py"
      ]
    }
  }
}

استخدم MCP الخاص بـ Abaqus MCP Plugin مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Abaqus MCP Plugin، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Abaqus MCP Plugin كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Abaqus MCP Plugin.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "abaqus-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Abaqus MCP Plugin، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Abaqus MCP Plugin.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Abaqus MCP Plugin لمساعدتي في هذه المهمة؟
Abaqus MCP Plugin
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Abaqus MCP Plugin.

الأسئلة الشائعة

ما استخدامات خادم MCP Abaqus MCP Plugin؟

Abaqus MCP Plugin هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Abaqus MCP Plugin مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Abaqus MCP Plugin مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Abaqus MCP Plugin مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Abaqus MCP Plugin، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Abaqus MCP Plugin بـ TypingMind؟

يعمل Abaqus MCP Plugin عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Abaqus MCP Plugin في TypingMind؟

يتيح Abaqus MCP Plugin إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Abaqus MCP Plugin؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Abaqus MCP Plugin يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇