Skip to content
superWorldSaviorPublic

About

MCP server for SysON — SysML v2 MBSE modelling, AQL queries, requirements tracing, and interactive MCP App viewers for AI agents.

Topics

Resources

Security policy

Stars

6 stars

Watchers

2 watching

Forks

Repository files navigation

@casys/mcp-syson

Publish JSR License: MIT

A focused Model Context Protocol provider for SysON and SysML v2. An MCP client works with a real SysON model through explicit modelling, navigation, diagram, requirement, constraint and value operations, and shows the results in interactive MCP Apps.

The Fly action flow drawn by the diagram viewer in the automatic layout: actions, start and done nodes, fork and join bars, a decision, guarded successions and an item flow between parameters

Viewers

Every result comes with a compact MCP App that does one job, so a host can compose them without embedding a modelling tool. The diagram viewer draws SysON's General, Interconnection, Action Flow and State Transition views with SysON's notation, in SysON's layout or an automatic one.

The FlightModes state machine: entry actions, nested states, initial states and transitions with triggers and guards
diagram-viewer — a State Transition view: nested states, entry actions, triggers and guards
The Drone interconnection view: a view frame, the Drone part with its parts, ports and connections, and an item flow
diagram-viewer — an Interconnection view: parts, ports, connections and item flows
The model explorer at the root of the Batmobile model: 39 elements, counts by kind, and the first part and item definitions
model-explorer-viewer — the model as a tree, loaded branch by branch, with filters by kind
The part and interface usages of the Batmobile part definition returned by an AQL query, sorted by label
query-results-viewer — AQL and search results, filtered and sorted
The StandBackrest authored requirements: maximum displacement at most 1 mm and maximum von Mises stress at most 55,000,000 Pa
requirements-viewer — authored requirements and their limits
The Batmobile requirements trace: seven requirements with their satisfaction gaps and unknown verification
requirements-trace-viewer — satisfaction and verification coverage, gaps included
The DroneBudget constraints validated against the model's values: three pass and one fails, each with its margin
validation-viewer — constraints evaluated against the model's values, with margins
The wheel width attribute changed from 26 to 28, with the read-back matching the requested value
value-change-viewer — a value before and after its change, with its read-back

Click an element to add it to the AI context of the next turn; double-click or press Enter to open it. See Browse model elements and diagram views.

The images are rendered by deno task docs:viewer-screenshot from recorded sessions and tool results (docs/fixtures, tests/fixtures/live-audit). The same operations work in clients without MCP Apps, and no tool calls a language model: interpretation, approval and orchestration stay with the calling client.

Quick start

You need Deno 2.x and a SysON instance. The included development stack starts a reviewed SysON image and PostgreSQL locally:

docker compose up -d
export SYSON_URL=http://localhost:8180

Run the published package over HTTP:

deno run -A jsr:@casys/mcp-syson@0.9.2/server

The MCP endpoint is http://127.0.0.1:3009/mcp. For a client that launches one local process, use stdio instead:

deno run -A jsr:@casys/mcp-syson@0.9.2/server --stdio

An existing SysON deployment works too; point SYSON_URL at its base URL. The server never guesses an endpoint.

See Getting started for Docker, transport, category, authentication and renderer configuration.

What it helps with

  • Create projects, documents, packages and explicit SysML v2 structures.
  • Browse and query model elements while preserving SysON identifiers.
  • Draw SysON diagrams with their notation, in SysON's layout or an automatic one; a local SVG (or an opt-in external renderer) serves clients without MCP Apps.
  • Trace requirements and derive product structures from model evidence.
  • Evaluate unit-aware constraints and explore bounded what-if values.
  • Update model values and perform fail-closed destructive operations.

The provider does not turn an acknowledgement into proof. Critical writes need read-back, unresolved values stay unresolved, and permanent deletion is only reported after its postcondition is observed. The exact safety and evidence semantics live in Capabilities, safety and evidence.

Documentation

Development

deno task check
deno task lint
deno task fmt
deno task test

Viewer development uses the published MCP View packages and requires a rebuild after source changes. The complete loop is documented in MCP Apps and recorded viewer contracts.

License

MIT

About

MCP server for SysON — SysML v2 MBSE modelling, AQL queries, requirements tracing, and interactive MCP App viewers for AI agents.

Topics

Resources

Security policy

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages