RM

rperdiga/mcpextension

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

7 stars 5 forks 质量 42 趋势 15

A that exposes the full modeling API through a over HTTP/SSE. Enables AI tools (Claude, Cursor, Copilot, etc.) to read, create, modify, and manage Mendix application models programmatically.

概览

A that exposes the full modeling API through a over HTTP/SSE. Enables AI tools (Claude, Cursor, Copilot, etc.) to read, create, modify, and manage Mendix application models programmatically. across domain modeling, microflows, pages, security, workflows, and more. 1. Download dist/SPMCP.mpk 2. In Studio Pro, go to and select SPMCP.mpk 3. Accept the import — the module will appear in your project Extensions require the --enable-extension-development flag when launching Studio Pro. Right-click your Studio Pro shortcut > > append the flag to the field: Open the in Studio Pro (View menu or toolbar). The MCP server starts automatically when the pane opens. Default port is 3001. Change it via the settings button in the SPMCP pane. The SPMCP module includes a Java action (SPMCP.InsertDataFromJSON) that loads sample data into your app on startup. After generating sample data via the generate_sample_data MCP tool, wire it up as follows:

README

以下为原文 README 节选,完整内容请查看原文。

SPMCP — Mendix Studio Pro MCP Extension

A Mendix Studio Pro extension that exposes the full modeling API through a Model Context Protocol (MCP) server over HTTP/SSE. Enables AI tools (Claude, Cursor, Copilot, etc.) to read, create, modify, and manage Mendix application models programmatically.

84 tools across domain modeling, microflows, pages, security, workflows, and more.


Installation (Studio Pro 10.24.13)

Step 1 — Import the module

  1. Download dist/SPMCP.mpk
  2. In Studio Pro, go to App > Import Module Package and select SPMCP.mpk
  3. Accept the import — the SPMCP module will appear in your project

Step 2 — Enable extension development

Extensions require the --enable-extension-development flag when launching Studio Pro.

Option A — Shortcut (recommended): Right-click your Studio Pro shortcut > Properties > append the flag to the Target field:

"C:\Users\...\studiopro.exe" --enable-extension-development

Option B — Command line:

studiopro.exe "YourProject.mpr" --enable-extension-development

Step 3 — Start the MCP server

Open the SPMCP dockable pane in Studio Pro (View menu or toolbar). The MCP server starts automatically when the pane opens.

Verify it’s running:

http://localhost:3001/health

Step 4 — Connect your AI tool

Transport Endpoint Description
Streamable HTTP http://localhost:3001/mcp Primary (MCP spec 2025-03-26)
SSE (legacy) http://localhost:3001/sse Legacy SSE transport (MCP spec 2024-11-05)
Health http://localhost:3001/health Health check
Metadata http://localhost:3001/.well-known/mcp Server capabilities

Default port is 3001. Change it via the settings button in the SPMCP pane.


Tool Reference (84 Tools)

Domain Model — CRUD (15 tools)

Tool Description
read_domain_model Read full domain model: entities, attributes, associations, generalizations, event handlers
create_entity Create entity with attributes. Supports 9 types: persistent, non-persistent, filedocument, image, audit trail variants
create_association Create association between entities. Cross-module supported
create_multiple_entities Bulk entity creation with per-entity module targeting
create_multiple_associations Bulk association creation with cross-module support
create_domain_model_from_schema Create complete domain model from JSON schema
delete_model_element Delete entity, attribute, association, or microflow
add_attribute Add attribute to existing entity (all types including Binary, HashedString, Long)
set_calculated_attribute Make attribute calculated via microflow
set_entity_generalization Set entity inheritance (cross-module)
remove_entity_generalization Remove entity inheritance
在 GitHub 查看完整 README

安装

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

Open the repository installation guide 新手?先看 mcpskill.org 教程 →