Skip to main content
Glama
mm6502

Enterprise Architect MCP Server

by mm6502

Enterprise Architect MCP Server

用于 Sparx Enterprise Architect .qea 导出的只读 MCP 服务器。让 AI 代理能够访问 EA 分析模型——搜索元素、导航包、读取用例场景以及遍历连接器——而无需运行 EA 实例。

先决条件

  • Node.js 22+(使用内置的 node:sqlite 模块)

  • 从 Sparx Enterprise Architect 导出的 .qea 文件

安装

添加到项目的 .vscode/mcp.json

{
  "servers": {
    "enterprise-architect": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "github:DITEC-Mracka/enterprise-architect-mcp"],
      "env": {
        "EA_QEA_PATH": "<path-to-your-qea-file-or-directory>"
      }
    }
  }
}

<path-to-your-qea-file-or-directory> 替换为你的实际 .qea 文件路径。

配置

服务器使用回退链解析 .qea 路径(第一个匹配项优先):

  1. CLI 参数 —— mcp-server-ea C:\path\to\model.qea

  2. 环境变量 —— EA_QEA_PATH(在 mcp.jsonenv 块或系统环境中设置)

  3. .env 文件 —— 在工作目录的 .env 文件中设置 EA_QEA_PATH=...

如果路径指向目录,服务器会自动按修改时间选择最新的 .qea 文件。

使用 .env 进行设置(推荐团队使用)

# Copy the template
cp .env.example .env

# Edit .env with your local path
EA_QEA_PATH=D:\EAExporty\projekt\architektura.qea

.env 文件已被 gitignore——每位开发者设置自己的路径,不会影响共享配置。

可用工具

工具

描述

ea_search

跨元素、属性、操作和约束进行全文搜索。对斯洛伐克字母表不区分大小写,解码实体编码文本。

ea_get_element

完整的元素详情——属性、操作、出现的图表、约束(前置/后置/不变量/流程)。标记属性多重性是否具有对比性。

ea_list_elements

列出包中的元素,可按类型过滤。报告总数并支持分页。

ea_get_connectors

元素的关系——包括特性链接解析(每个端点连接到哪个属性/操作)。

ea_get_diagram_elements

图表上的元素和连接器,包括隐含连接器和特性链接。

ea_get_scenarios

用例场景步骤及其所有属性(触发器、用途、结果、链接、状态)和场景备注。

ea_get_package_tree

以递归深度导航包层次结构。

ea_list_diagrams

按名称和包搜索图表。

ea_resolve

将分析师引用(花括号 GUID 或纯名称)解析为带有完整包路径的模型候选。对分析师代码回退到名称前缀匹配;每个候选都带有 match,值为 guidexactprefix

ea_get_schema

检查模型的数据库架构——表、列、索引、rowid 别名。

ea_get_model_info

当前打开的导出文件的标识信息——文件名、大小、修改日期、服务器版本。

响应契约

每个工具都返回结构化 JSON,包含:

  • _meta.sourceTables —— 查询了哪些数据库表

  • totalMatched / returned / truncated —— 每个集合的完整性元数据

  • continuation —— 被截断时用于获取完整集合的确切调用

  • isError: true + { error: "not_found" } —— 用于不存在的对象(与空结果区分)

存在两个字段,防止不精确的答案被当作已确认的答案:

  • ea_resolve —— match 始终存在;只有 prefix 是不精确匹配

  • ea_get_element —— _meta.attributes.multiplicityIsUniform: true 表示元素的属性没有多重性对比,因此 1..1 不能作为必填性的证据

示例提示词

连接后,可以尝试如下提示词:

  • "搜索与 'právnická osoba' 相关的元素"

  • "显示根目录下的包结构"

  • "UC_FEO_2027 的用例场景是什么?"

  • "图表 0103 Spracovanie eFORM 上有哪些元素和连接器?"

  • "解析引用 {94291B11-C990-482e-BF3F-19EFF04FB37E}"

  • "t_connector 有哪些列?"

  • "元素 a7680 出现在哪些图表上?"

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (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 Connectors

  • MCP server for AI access to Swagger by SmartBear.

  • Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.

  • Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.

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/mm6502/enterprise-architect-mcp'

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