Using StarUML models to teach domain concepts to AI agents — any established workflow?

17 views
Skip to first unread message

Naresh Bhatia

unread,
May 5, 2026, 9:41:36 AM (11 days ago) May 5
to StarUML
Hi all,

I have a use case that I imagine many people are running into as AI coding assistants become mainstream:

I want to model my domain in StarUML (classes, relationships, constraints) and then somehow export that model in a form that an AI agent can understand — plain English, Markdown, structured prose — so the agent has deep knowledge of my domain when helping me write or review code.

The MDJ format is great for tooling but not ideal for LLM consumption. XMI is even worse (too verbose, too many cross-references). The built-in HTML Docs export only renders diagrams visually.

What I'm looking for is something that takes a StarUML model and produces output like:

"A Mission has many Waypoints. Each Waypoint belongs to exactly one FlightPlan. A FlightPlan must have at least one Waypoint..."

I noticed StarUML now supports MCP (Model Context Protocol) integration. Could that be the answer here — i.e., could an AI agent query the model directly through MCP rather than needing an export? If so, has anyone tried this workflow?

Alternatively, has anyone written an EJS template or extension that generates natural-language model documentation?

Would appreciate any pointers.

Thanks,
Naresh

StarUML

unread,
May 5, 2026, 9:16:47 PM (10 days ago) May 5
to StarUML
Hi Naresh,

How about using diagram images?

Thanks,


2026년 5월 5일 화요일 오후 10시 41분 36초 UTC+9에 m...@nareshbhatia.dev님이 작성:

Naresh Bhatia

unread,
May 5, 2026, 11:20:48 PM (10 days ago) May 5
to StarUML
Unfortunately we are discouraged from using images in the repository because they can't be diffed. The recommended diagramming format is mermaid, but it is awful at placement and layout.

--
You received this message because you are subscribed to the Google Groups "StarUML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to staruml+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/staruml/e543ed90-b691-4986-9c43-55ca17a75c48n%40googlegroups.com.

Naresh Bhatia

unread,
May 8, 2026, 10:58:43 AM (8 days ago) May 8
to StarUML
Here's another idea: Can I export a StarUML model in PlantUML format? This format is understood by most AI agents.

StarUML

unread,
May 8, 2026, 11:52:16 PM (7 days ago) May 8
to StarUML
Not supported yet.

Thanks,

2026년 5월 8일 금요일 오후 11시 58분 43초 UTC+9에 m...@nareshbhatia.dev님이 작성:
Reply all
Reply to author
Forward
0 new messages