GitHubGitHub Stars
v0.56.02026-11-05Current

SysML 2 as a complete diagram family, notes everywhere, workspace PDF export

SysML 2 now covers a complete family of nine diagram types, and every notation gains notes. Layout and label placement have a new foundation with 50 % more space between components, the LaTeX/TikZ output catches up with the SVG output, and kUML Desktop adds workspace PDF export and an MCP workspace mode. One breaking change affects the expression parser.

Added

  • SysML 2 diagram family: state machines (composite and orthogonal states, timers, history, junctions), activity diagrams (signals, time events, interruptible regions, swimlanes), requirement and use-case diagrams, block definition and internal block diagrams with ports, flows and allocation, parametric diagrams, sequence-diagram extensions, package diagrams with views and viewpoints, and analysis cases and calculations.
  • Notes on every diagram type: note kinds with symbols, formatted note text (bold, italic, code, lists, links), placement without overlap and anchors that attach to the drawn geometry, for UML, SysML 2, C4, BPMN, ERM and Service Blueprint. The C4 and Service Blueprint DSL printers write notes too, and there is a new Service Blueprint DSL printer.
  • LaTeX/TikZ output: notes (UML, SysML 2, C4, BPMN, Service Blueprint), UML edge labels, aggregation and composition diamonds, navigability, include/extend notation, labels on a backdrop, and BPMN message flows that build with pdflatex again.
  • kUML Desktop: icons in the menu and on dialog buttons, an About dialog, a preview toolbar (actual size, centre, export to SVG, PNG and PDF), adjustable column widths and scrollable documents in the Knowledge Workspace, a simulator inspector, and a hint in the MCP dialog that the server runs only while the app is open.
  • Workspace PDF export from the CLI, the Desktop and MCP, plus a workspace mode for the Desktop MCP server.
  • Multi-script model composition: transform and generate over several .kuml.kts files.

Changed

  • Label and layout foundation: deterministic layout, collision-free label placement for UML, SysML 2, C4, ERM and Service Blueprint, and edge ends that dock on port and pin borders.
  • More space between components: every ELK-laid-out diagram spaces components 50 % further apart (LAYOUT_SPACING_SCALE 1.5), so longer labels fit. Box and font sizes are unchanged.
  • ERM labels: name labels are planned along the whole length of a line, so a self-loop label moves above the loop when there is no free spot beside it.
  • LaTeX/TikZ end labels at diamonds and open heads keep clear of the symbol.

Breaking

  • In the expression parser, the word operators and, or and not are recognised in lowercase only and never directly after a .. Uppercase AND, OR and NOT are no longer operators. Identifiers that are named like operators need backticks.

Removed

  • The outdated guides docs/getting-started.adoc and docs/diagram-types.adoc; the handbook replaces them.

Known limits

  • BPMN collaboration notes in LaTeX have no association line.
  • ERM has no LaTeX renderer.
  • SysML 2 package diagrams have no LaTeX renderer.
  • LaTeX end labels still have no label planner: very short end segments can still overlap a diamond or chevron.
v0.55.32026-10-21

kUML Desktop: dialogs that show up, ⌘ shortcuts on macOS, a tidier document header

kUML Desktop opens its workspace dialogs as real windows, uses the ⌘ key for menu shortcuts on macOS, shows scripts you save in the Engineering workspace tree, and gets a cleaner document header with Read/Edit tabs.

Fixed

File → New Workspace… showed no dialog

The “New Workspace…”, “Trust this workspace?” and “Open as…” dialogs were drawn inside the main window and disappeared behind (or were cut off by) the editor and the diagram preview. They are now real dialog windows, like the About dialog.

macOS: menu shortcuts use ⌘

Save, Undo, Redo, Find, the view-mode switches and Simulate were bound to Ctrl, so a Mac needed ⌃S instead of ⌘S. All menu shortcuts now follow the platform convention: ⌘ on macOS, Ctrl on Windows and Linux.

New scripts did not appear in the Engineering workspace tree

A script created via Save or Save As stayed invisible in the navigation. The tree now refreshes after saving and when you switch files.

Changed

  • Document header: type and title sit above, and Read/Edit are now tabs directly above the content they switch. Type and title share one height and line up. The type: dropdown shows a proper arrow.
v0.55.22026-10-17

Web editor starts again, Kotlin reverse honours --include/--exclude

The `kuml serve` web editor loads without any CDN script and starts reliably, `kuml reverse --lang kotlin` finally applies `--include`/`--exclude`, and the test suite runs cleanly on Windows.

Fixed

kuml serve: the web editor did not start

The web editor loaded CodeMirror from esm.sh and combined a legacy @codemirror/basic-setup with CodeMirror 6 packages. That pulled in two instances of @codemirror/state, the browser reported “Unrecognized extension value in extension set” and the editor was never created. The frontend is now built from one locked npm dependency graph and bundled with Vite, so the page no longer loads any script from a third-party CDN. A Playwright regression test runs the packaged distribution in a container. Contributed by @WhereJuly (#5), which fixes #4.

Kotlin reverse engine ignored --include/--exclude

kuml reverse --lang kotlin never applied the globs, so test and spec files could not be left out of the model. Globs are now matched against the file name or the path relative to the source root (*Test.kt, **/test/**), excludes win over includes, excluded files are not parsed, and an invalid glob fails with the new diagnostic REV-CORE-003. The Java engine is unchanged. Fixes #6.

Changed

  • Building kUML from source now needs Node.js (^20.19 or >=22.12) with npm, because kuml-web bundles its frontend with Vite. Release binaries, Homebrew, Chocolatey, SDKMAN and the Maven artifacts are not affected.
  • Tests are portable to Windows (path separators, CRLF, symlink-restricted accounts, Windows file locking). Test code only, no behaviour change.
  • kuml-web frontend dependencies updated (@codemirror/view 6.43.14, Vite 8.3.4, Playwright 1.64.1).
v0.55.12026-10-12

kUML Desktop: resizable split, mouse navigation and the real logo

The divider between editor and preview can be dragged, the diagram preview pans and zooms with the mouse, Help ▸ About shows the version and the app icon is the official kUML logo. Also: the JetBrains plugin and the macOS packages missing from v0.55.0 are published, and several stability fixes.

Added

Resizable editor/preview split

In split view the divider between source editor and diagram preview can be dragged (at least 15 % and 200 dp per pane), nudged with the arrow keys when focused (Shift for larger steps, Home/End for the limits) and reset to 50/50 with a double-click or Enter. The position is saved when you release the mouse.

Mouse navigation in the diagram preview

Drag with the left button to pan, scroll the wheel or trackpad to pan (Shift: horizontally), hold Ctrl or Cmd while scrolling to zoom around the pointer, double-click to fit the diagram to the window. Applies to the editor preview, the Knowledge Workspace viewer and the AI patch preview.

Version in Help ▸ About kUML…

The About dialog shows the app version, and the desktop MCP server reports it instead of dev.

Official logo as application icon

The icon is now the kUML logo from kuml.dev ({k} and the wordmark) on a proper macOS tile, with the {k} mark alone at small sizes. kuml-desktop/scripts/generate-app-icon.py regenerates it.

Fixed

Missing artifacts of v0.55.0

v0.55.0 shipped without the JetBrains plugin build and without the macOS installer and runtimes: the plugin failed the Marketplace verifier (a Kotlin 2.4 standard-library call missing on IntelliJ 2024.3 and 2025.1, now avoided) and Apple’s notarization service rejected the uploads until an account agreement was renewed. v0.55.1 publishes all of them.

Stability

AiProviderSettingsState.awaitPendingWrites() could throw a NoSuchElementException when a write finished at the wrong moment (a race in toList() on a concurrent queue); this was also the sporadic CI failure of AiProviderSettingsStateTest. Two other timing-sensitive desktop tests are now deterministic.

Tooltips

Toolbar tooltips no longer cover their own button. They appear beside the button inside the toolbar, because Compose popups are not drawn over the editor and the preview.

v0.55.02026-10-10

kUML Desktop gets an MCP server: let your AI agent work in the running app

kUML Desktop can now host an optional local MCP server. An agent such as Claude Code reads and replaces the script that is open in the app, validates it and renders it, while you watch the live preview. Also fixes a blank preview in the installed desktop app and refreshes dependencies.

Added

kUML Desktop: optional local MCP server

Enable it under Tools ▸ MCP server…. It is off by default, listens on 127.0.0.1 only and is protected by a bearer token. The dialog copies a ready-made claude mcp add command.

  • Seven live tools: kuml_desktop_get_script, kuml_desktop_set_script, kuml_desktop_render, kuml_desktop_validate, kuml_desktop_get_last_error, kuml_desktop_get_theme, kuml_desktop_set_theme, plus the four authoring tools (kuml.describe, kuml.examples, kuml.generate, kuml.list_elements).
  • set_script uses optimistic concurrency: it needs the revision the agent last read, so your own edits are never overwritten. A replacement is one Undo step and never saves a file; a notice with an Undo button appears in the app.
  • Security: 256-bit token in its own owner-only file, constant-time comparison, strict Host and Origin checks, 1 MiB request limit, timeouts. Anyone holding the token can run Kotlin code in the app, so keep the server off when you do not need it.

kuml-mcp public API

The protocol logic (McpRequestHandler, McpToolRegistry, McpTool, KumlAuthoringTools) is now public and transport-independent. The stdio server’s output is unchanged.

Fixed

Blank preview in the installed desktop app

The Java runtime bundled with the DMG, MSI, DEB and RPM was missing the jdk.unsupported module, so every render failed with java.lang.ExceptionInInitializerError, including newly created OKF workspaces. The runtime modules are now pinned explicitly and covered by a regression test. The CLI and running the app from source were not affected.

Changed

Dependencies refreshed: Gradle 9.8.1, Koog 1.3.0, Ktor 3.6.0, Compose Multiplatform 1.12.1, Kuiver 0.4.2, Coil 3.6.3, Kotest 6.2.5, JUnit 6.1.3, Logback 1.6.5 and more. Kotlin stays on 2.4.10 and JSqlParser on 5.3 because newer versions break the reverse-engineering modules.

v0.54.02026-09-12

Guard-evaluation security fix, BPMN process simulation, and UML association classes

A security fix closes fail-open gaps in guard evaluation on the state-machine path — a guard comparing against data that was never provided could previously fire when it should have blocked. Also new: `kuml simulate` runs BPMN process diagrams end to end, kUML Desktop gained live state-machine simulation and an editable OKF Workspace document view, UML gained proper association classes, and the JetBrains plugin's long-blocked Marketplace publish is unblocked.

Security

Guard evaluation had fail-open gaps on both the state-machine and Activity/BPMN paths

A guard comparing against a variable the event stream never actually provided (vars.missing <> 1, event.x != 1, or the equivalent dot-navigation / function-call forms) could evaluate to a trusted true instead of failing safely — meaning a transition could fire, or a BPMN/Activity branch could take the “allowed” path, based on data that was never supplied. This affected both guard evaluators: the newer Activity/BPMN evaluator and the older state-machine evaluator (OclGuardEvaluator), including a related bug where negated guards ("!allow") were silently dead code on the Activity/BPMN path and never took the negated branch at all, regardless of the underlying value.

Both evaluators now share a single fail-closed check: a true result is discarded if it comes from a variable the model never received, downgrading it to a reported guard failure instead of a silent, trusted true. false results remain trusted (the safe direction), and &&/||/and/ or/implies keep evaluating short-circuit, so a legitimately true isVip || spendOver1000 still fires even if spendOver1000 was never set. Guard-evaluation crashes (a malformed OCL expression, a stack overflow from a very long chain, an interrupted sandbox) are now reported as a failure instead of propagating as an exception.

Breaking change for one specific idiom: vars.x = null / vars.x == null used as “is X not set” no longer fires when x is missing — it now reports a guard failure instead of a trusted true. Models relying on this pattern should switch to vars.x.oclIsUndefined(), which correctly treats “never set” and “explicitly set to null” as equivalent.

A related audit of the new TokenFlowEngine (BPMN simulation, see below) closed five further gaps: an unsandboxed replay path, a BPMN sub-process/loop/boundary-event combination that silently degraded to a false “success”, an INCLUSIVE gateway split that could drop a token without warning, unvalidated CLI numeric options that could overflow a timeout calculation, and guard timeouts/exceptions that were indistinguishable from a legitimately false guard.

Added

kuml simulate for BPMN process diagrams — new TokenFlowEngine

A new model-agnostic TokenFlowEngine runs BPMN 2.0 process diagrams, UML Activity diagrams, and SysML 2 Action diagrams against the same Petri-net-style token-flow semantics. kuml simulate <script.kuml.kts> <events.json> auto-detects a BPMN process diagram and routes it through the new engine; --process <id> selects a process when a model declares several, --max-tokens and --time-budget-ms bound token explosion and runtime in cyclic models. Supports EXCLUSIVE/ PARALLEL/INCLUSIVE gateways (converging, diverging, mixed), terminate/flow-final events, and BPMN default flows. A collapsed sub-process (no own content) runs as a single opaque node; an expanded sub-process with real content, loop characteristics, or boundary events is explicitly unsupported and reported as an error rather than silently skipped.

Live state-machine simulation in kUML Desktop — new Tools ▸ Simulate (Ctrl+R) for UML state machines and SysML 2 state-machine diagrams. Starts a sandboxed live session in the preview panel: step / auto-advance / reset, a list of events valid from the current state, and a trace column with scrubbing. Active states highlight via a live DOM patch on the existing SVG (zoom/pan preserved) instead of a full re-render on every step.

OKF Knowledge Workspace documents are now editable in kUML Desktop — previously a read-only Markdown viewer, now with a read/edit toggle in the same editor used for .kuml.kts scripts, including undo/redo and find. Frontmatter (type:, title:) gets its own header controls that splice surgically into the existing buffer, leaving comments, unknown keys, and their order byte-identical.

UML gains association classes (ADR-0017) — UmlAssociationClass models the standard UML concept of an element that is simultaneously a classifier (attributes, operations, inheritance) and a relationship (connects two classifiers), as a single element with one id — not two coupled objects that could drift apart. Full DSL builder, both DSL-printer dialects, layout-bridge placement (with a dashed tether line to the parent association), and SVG rendering are supported. Codegen and the Compose-based Kuiver renderer don’t support association classes yet.

SysML 2 and C4 DSL round-trip completeness gaps closed (ADR-0017) — several previously documented DSL-builder gaps below what the underlying metamodels actually support are fixed: isAbstract/specialization on more SysML 2 definition types, 8 additional Sysml2Usage DSL constructors, and five C4 gaps (model description, container-instance id, a Code-level DSL entry point, layout hints on deployment nodes, and include(...) on container/component diagrams). ScriptSerializer’s C4 and SysML 2 printers are also now implemented, closing two long-standing stub gaps.

Fixed

JetBrains plugin: Marketplace publish unblocked (fixed an internal-API verifier failure)

Every Marketplace submission since 0.51.0 was silently rejected: the Markdown-preview integration used an IntelliJ Platform extension point marked @ApiStatus.Internal. Replaced with the sanctioned MarkdownBrowserPreviewExtension extension point — same rendered result, no visible behavior change. CI now runs the Plugin Verifier before every publish, so a regression like this fails the build instead of silently reaching the Marketplace queue. Also fixed: a layout jump on every keystroke while editing a kuml fence in a Markdown document.

  • A script-sandbox worker-pool shutdown race that could leak a child JVM under load.
  • UML association navigable is now respected by both renderers.
  • kUML Desktop: saving an OKF Workspace document on macOS could corrupt that document’s identity in the tree (a symlink-resolution mismatch between /var and /private/var).

Full changelog: github.com/kuml-dev/kUML/releases/tag/v0.54.0

See all 71 releases →GitHub Releases