Book a Demo

Author Topic: MCP (Model Context Protocol) server for Enterprise Architect has been released  (Read 110934 times)

Viking

  • EA User
  • **
  • Posts: 474
  • Karma: +2/-2
    • View Profile
Hi Takeshi, I tried to create a more detailed UML class diagram now. Two important features are missing from my point of view:

  • I cannot create attributes. Copilot says: "The current implementation has a limitation: the set_element_property tool treats custom properties as "Tagged Values" in EA, not as proper UML dass attributes."
  • I cannot add cardinalities.
Is there also a work-around?
« Last Edit: November 07, 2025, 02:23:13 am by Viking »

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Hi Viking,

Thank you for your comment.

- Notation and size in diagrams

Currently, it is not easy to offer the 'tools' (MCP methods) for them, but I have added a feature to support the Template Package in Enterprise Architect.
Could you update the MCP addin to the latest (version 2.1.0) and then create a Template Package in your model, and then add a Archimate Compornent with your faviorite style?

- Adding attributes

Currently the MCP addin does not offer a tool to add attributes. I will add the feature in the future.

- cardinalities

On the version 2.1.0, we can modify the Multiplicities of connectors. Does this solve your situation?
--
t-kouno

Viking

  • EA User
  • **
  • Posts: 474
  • Karma: +2/-2
    • View Profile
Hi Takeshi, Many thanks.
  • I will try 2.1.0.
  • Do you mind to also add the capability to add attributes? For me this is one of the most important feature of an UML class diagram (so so much for other diagrams), because I more use it do describe concepts precisely.
  • Resizing can wait.
  • But icon notation would be great.
V.
« Last Edit: November 08, 2025, 06:47:05 am by Viking »

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Yes, the implementation of attributes and operations is currently underway. However, it will take longer to be released.
--
t-kouno

Viking

  • EA User
  • **
  • Posts: 474
  • Karma: +2/-2
    • View Profile
Hi Takeshi,

"I haven't tested your workaround solution for BPMN yet, but I will definitely do so.". Here are finally my test results:
  • The sterotypes are used and displayed for all elements I was using: events (!), activities, gateways.
  • As part of the prompt I said which task types to use, but I got only 'abstractTasks'. I will futher investigate this issue.
  • mcp created lanes for each involved role. But it arranged them as a row (not on top of each other), And it did not put the respective activities into the lanes. Instead Copilot says: "The fundamental issue: The MCP server's createelement and setelementproperty commands don't seem to support proper BPMN lane Containment. This is similar to the limitation we found with UML attributes - the MCP Server (v2.1.0.0) doesn't expose all the necessary commands for complete BPMN diagram modeling."
  • The layout is quite good. But it is vertical and cannot be changed. BPMN diagrams are more horizonal and this should be the outcome, if the layout cannot be adapted.
  • The created diagram is not correct but my understanding is that mcp cannot help here (e.g., only diverging gateways have been created, but not converging ones).
V.
« Last Edit: November 11, 2025, 05:23:44 am by Viking »

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Hi Viking,

Thank you for checking the behaviour in BPMN model.
Unfortunately, creating beautiful diagrams with the Pools and Lanes with the current MCP server. The server must offer functions ('tools' in the MCP world) to specify the location of elements and connectors.

I will consider offering these functions, but not in the near future.
--
t-kouno

Viking

  • EA User
  • **
  • Posts: 474
  • Karma: +2/-2
    • View Profile
I will consider offering these functions, but not in the near future.

On top of my wish list are attributes for UML classes. Would this be possible in the near future?

pevergreen

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • Prestige Evergreen
    • View Profile
    • Prestige Evergreen
good info

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
The implementation for adding/modifying attributes and operations (including parameters) has been completed, now I am testing if they work well. I needed to change some internal existing behaviour to support them, so I need to check all main features.

I think I can release the new installer today or tomorrow.
--
t-kouno

Viking

  • EA User
  • **
  • Posts: 474
  • Karma: +2/-2
    • View Profile
The implementation for adding/modifying attributes and operations (including parameters) has been completed...
I think I can release the new installer today or tomorrow.

Great news

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
The version 2.2.0 has been released. I found and fixed some issues during my tests, but there may still be others.
--
t-kouno

Viking

  • EA User
  • **
  • Posts: 474
  • Karma: +2/-2
    • View Profile
The version 2.2.0 has been released. I found and fixed some issues during my tests, but there may still be others.

I tested the newest version for my UML Class Diagrams. It now creating elements, connectors, attributes, and cardinalities. Awesome :)

For any reason it does not create the model anymore (empty "diagram" also cretaed, opened, and selected). So, I have to move the elements from the project brwoser to the diagram.
« Last Edit: November 26, 2025, 02:00:12 am by Viking »

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Yes, new elements will no longer be placed on diagrams for various reasons, mainly due to user requests and ideas on how to use this MCP, as well as to improve performance.

We can now place multiple elements at once using the place_element_on_diagram tool. I will update the add-in so that it can create two or more elements at once, saving on AI costs and improving performance.
--
t-kouno

Viking

  • EA User
  • **
  • Posts: 474
  • Karma: +2/-2
    • View Profile
Yes, new elements will no longer be placed on diagrams for various reasons, mainly due to user requests and ideas on how to use this MCP, as well as to improve performance.

We can now place multiple elements at once using the place_element_on_diagram tool. I will update the add-in so that it can create two or more elements at once, saving on AI costs and improving performance.

Sorry, I don't understand. I can create new elements, but cannot create a diagram using them? Or do you mean that I have to tell the agent in addition, that I want to place the new elements on a diagrams?

Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
We can create elements and diagrams, and place existing elements onto them. As I mentioned in my last post, I split the tool into two for better performance and to support more situations. However, we usually do not need to specify which tool the agent should use to fulfil our requests, as the agent can automatically determine this.

Simply make your requests to the AI. The AI will generate the necessary packages, diagrams, elements and connectors, and then place the elements on the diagrams.
--
t-kouno