Build your SysML v2 model together with your AI agent. SysMLv2 Modeler Early Access Version is a Visual Studio Code (VS Code) extension for MBSE that lets you and your AI agent work on the same model, in text and on diagrams.
This guide uses the included sample, a small delivery robot, to walk you through the basics in three steps: exploring the model, connecting your AI agent, and editing with AI and by hand. The sample contains ten diagrams that cover all eight standard SysML v2 view kinds.
Before installing, make sure your computer runs on one of the supported platforms.
Supported platforms Windows (x64), macOS (Apple Silicon), and Linux (x64). Windows on ARM64 and Intel-based Macs are not supported.
If you don’t have VS Code yet, follow the instructions in Download and install Visual Studio Code.
.vsix file you received.
.sysml files (or first use a feature of the extension), you are asked to accept the license agreement. Review it and accept. If you’re asked to reload the window, follow the prompt.
Disable other SysML v2 extensions. If another SysML v2 or KerML extension (for language support, syntax highlighting, and so on) is installed, it may take over .sysml files, and SysMLv2 Modeler may not work correctly. When SysMLv2 Modeler starts, it tells you the name of any other SysML extension that is enabled.
To fix this, type sysml in the Extensions view search box, disable (or uninstall) every SysML-related extension except SysMLv2 Modeler Early Access Version, and reload the window.
sample folder included with this guide to a working folder.sample folder.
What’s in the sample A delivery robot simplified to four parts (sensor, controller, drive, and battery), three requirements (Payload, StopForPeople, and Endurance), three behaviors (Deliver, DrivingState, and StopSequence), and a 3D outline. The MiniRobotViews package contains ten diagrams (view declarations).
You can explore the same model in three ways: as text, in the Model Tree, and on diagrams.
Open MiniRobot.sysml from the Explorer or the Model Tree to see the model as SysML v2 text.

PersonSensor, press F12 to go to its definition.Use these commands to navigate the text.
| Task | How |
|---|---|
| Go to a definition | F12 or ⌘/Ctrl+click |
| Go back | Ctrl+- (macOS), Alt+← (Windows), Ctrl+Alt+- (Linux) |
| Find where an element is used | Right-click → Find All References |
| List all elements in a file | Outline view |
| Find an element by name and jump to it | ⌘/Ctrl+Shift+O (Go to Symbol in Editor). A list appears at the top of the window. Type to filter it. |
| See an element’s description | Hover over its name |
The Model Tree shows the model in the open folder, organized by ownership. Double-click an element to open it in the text editor, or right-click it and choose Open Diagram to see it on a diagram.

There are two ways to open a diagram.
The MiniRobotViews package at the end of the sample contains view declarations such as view structure : StandardViewDefinitions::InterconnectionView { expose …; }. A view declaration saves what the diagram shows, so it opens with the same contents every time. To save the layout as well, switch to manual layout (see Saving diagrams).
To open one, click Open Diagram above the declaration in the editor.

Or double-click the view in the Model Tree. You can also right-click the view and choose Open Diagram.

MiniRobotViews in the Model Tree.Place the cursor on an element in the text (for example, part def DeliveryRobot) and press ⌘/Ctrl+Shift+V. Or right-click the element in the Model Tree and choose Open Diagram.
A list appears at the top of the window, in two groups:

This new diagram isn’t saved yet. If you close it without saving, it’s discarded. To keep it, right-click its background and choose Save This Diagram to .sysml (Add View Declaration).
The diagram is saved as a view declaration. (This menu item doesn’t appear on diagrams that are already saved.)

Press F12 in a diagram to go back to the text. If an element is selected, you jump to its declaration. If nothing is selected, you jump to the diagram’s view declaration.
The sample contains ten diagrams that cover all eight standard SysML v2 view kinds. GeneralView is used three times.

GeneralView 
GeneralView 
InterconnectionView 
ActionFlowView 
StateTransitionView 
SequenceView 
GridView (beta)
BrowserView 
GeometryView GeneralView The system satisfies, the parts take on The subject of the requirements is DeliveryRobot, so the system itself satisfies them (satisfy). Which part takes on a requirement is a design decision, shown with allocate. A requirement can be allocated to several parts.
| Task | How |
|---|---|
| Zoom in or out | ⌘/Ctrl+wheel or trackpad pinch, ⌘/Ctrl+= / ⌘/Ctrl+-, or + / − on the panel at the bottom left |
| Reset to 100% | ⌘/Ctrl+0, or click the zoom percentage on the panel |
| Fit the diagram to the window | ⌘/Ctrl+9, or ⛶ on the panel |
| Pan | The wheel scrolls up and down, and Shift+wheel scrolls sideways. You can also drag with Space held down, or with the middle or right mouse button, or drag the frame in the minimap at the bottom right. |
| Select an area | Drag the background with the left mouse button |

Connect the AI agent you use through MCP (a standard way to give AI agents access to tools). You’re not tied to any particular AI service. The connected AI can see the open diagram (as an image and as structure), your current selection, and the model structure. It can explain them, and when you ask for a change, it edits the .sysml files directly.
How your design data is handled
.sysml files. It leaves your computer only through features you start yourself, such as AI integration and the @sysml chat.In Settings (⌘/Ctrl+,), search for sysmlv2-modeler.mcp.enabled and select the checkbox (off by default).

With GitHub Copilot in VS Code, there’s nothing to register. Once you turn on MCP in ①, you can use it right away.
Then try asking:
If the AI answers without using the tools Some models try to answer by searching files or running commands instead of calling the SysML tools. If that happens, switch the model below the input box (for example, to Claude Sonnet). If MCP isn’t available with your organization’s account, ask your administrator to check the Copilot MCP settings.
To use an AI agent other than Copilot, such as Claude Code or Codex, register it once first. If you use only Copilot, you can skip this section.

& or parentheses, choose the registration listed first under Starts VS Code directly (recommended for this path) in Copy Registration… (register again if you move VS Code to another folder).| Item | Value |
|---|---|
| Type | MCP server (stdio) |
| Command | Run SysML: Show MCP Connection Information and use the command on the Bridge line |
| Name | Any name (for example, sysmlv2) |
| Requirement | The AI agent must run on this computer |
Open the folder in VS Code first, then start the AI agent.
/mcp).After registering, start a new AI conversation. Many AI agents load MCP registrations when a conversation starts, so a conversation that was already open can’t use the new connection. In Claude Code, type /mcp in a new conversation. When sysmlv2 shows as connected, you’re ready.
Environments that can’t connect The MCP server accepts connections only from this computer, so AI agents that run only on another computer or in the cloud (such as an AI you use only in a browser) can’t connect. Other users of this computer can’t connect: the connection can be opened only by your own user account.
You can create a new model, or edit an existing one in three ways: ask AI, edit the text, or edit the diagram. All three change the same .sysml text.
GeneralView starts blank; the other four (InterconnectionView, ActionFlowView, StateTransitionView, SequenceView) start with a template.
.sysml file is created and its diagram opens. From there, open the palette with the button at the top right of the diagram and place elements.
occurrence def) and a view declaration are added to the package, and a diagram with a template opens.You can also ask AI. Ask something like “Create a structure diagram of a cleaning robot from scratch,” and the AI writes the .sysml and the view declaration for you.
The easiest way to edit is to describe the change to the AI (set up in Connecting your AI agent). The AI edits the .sysml file, and open diagrams update immediately.
charging state to DrivingState with transitions to and from idle.”Check the result. After the AI makes a change, ask “Check for problems.” The AI reads the editor’s diagnostics (the same errors shown as red squiggles) and reports them.
Work back and forth with the AI. This is how the tool is meant to be used. For example, ask the AI to “add a motor and a brake to the drive,” tidy up the layout and names on the open diagram yourself, and then ask the AI, “Look at the structure diagram. Are any connections missing?” Whoever makes the changes, and in whatever order, the same .sysml keeps growing.
These features help you as you edit models in text:
battery. to see its ports.// Example: add a brake inside DeliveryRobot
part brake : DriveUnit;
Your edits appear in open diagrams right away (you don’t need to save).

| Task | How |
|---|---|
| Add an element | Drag a palette item onto the diagram (or select it, then click the diagram). Dropping it inside a part creates it inside that part. |
| Draw a relationship | Choose a kind under Connect, then click the source and the target. Flows between ports work too. |
| Change a name or value | Select it and press F2 (or double-click the label). References in the text change too. |
| Add quickly | When you select an element, a small command bar (the quick palette) appears nearby, with shortcuts for relationships, navigation, and other commands. |
| Delete | Delete. It is removed from the text as well. |
| Move and align | Drag (alignment guides appear and snap). Select several and press Alt+Shift+arrow keys to align. |
Elements keep moving? In auto layout mode (the default), the diagram rearranges itself every time you add an element. Click Pause Auto Layout (⏸) on the panel at the bottom left to stop this, and click it again to resume.
Save from the text tab. Edits made on a diagram go first into the (unsaved) .sysml text. Press ⌘/Ctrl+S in the text tab to save them.
.sysml files (the standard SysML v2 textual notation). Diagrams draw that text, and diagram layout is also stored inside the view declarations..sysml files in the opened folder are loaded together and can refer to each other. .project.json marks the folder as a project.ISQ::* (quantities) and SI::* (units) come from the bundled standard library.If you’re unsure how to write something in SysML v2, asking AI is the shortcut: “What’s the difference between satisfy and verify?”, “Write a test case that verifies this requirement”, “Which parts are not on this diagram?”. The AI reads the model structure and the diagram on screen, and can confirm its edits against the editor’s diagnostics.
Switch the layout mode on the panel at the bottom left of a diagram.
| Mode | Behavior | Good for |
|---|---|---|
| Auto (default) | Rearranges the whole diagram whenever elements are added or removed. Layout is not written back to the .sysml. | Building up a model; checking its structure |
| Manual | Existing elements never move automatically; only newly added elements are placed. Positions are saved in the view declaration, so the diagram opens the same way next time. | Finishing diagrams for documents |
In either mode, Auto Layout on the panel (⌘/Ctrl+Shift+L) rearranges once. Click the Auto layout and display settings button on the panel to choose the layout algorithm, direction, spacing, and edge routing (Orthogonal, Polyline, or Splines) for each diagram.

Diagrams are written as view declarations in the .sysml. The expose lines decide which elements appear.
view structure : StandardViewDefinitions::InterconnectionView {
expose MiniRobot::DeliveryRobot; // show this element (and its contents)
}
view requirements : StandardViewDefinitions::GeneralView {
expose MiniRobot::Payload; // you can list elements one by one
expose MiniRobot::StopForPeople;
}
view everything : StandardViewDefinitions::GeneralView {
expose MiniRobot::*; // everything directly in the package
}
: …View part is the kind of diagram. There are eight kinds: GeneralView, InterconnectionView, ActionFlowView, StateTransitionView, SequenceView, GridView, BrowserView, and GeometryView.exposes.
MiniRobotViews in the sample) to keep the model tidy.You can save a diagram at two levels:
| What is saved | How | Next time you open it |
|---|---|---|
| Declaration only (what the diagram shows) | On a diagram opened from a model element (see On diagrams), right-click the background → Save This Diagram to .sysml (Add View Declaration). A view with its exposes is written. | It opens with the same elements. The layout is computed by auto layout each time. |
| With layout (positions, sizes, edge shapes) | Switch the view’s diagram to manual layout, arrange it, then press ⌘/Ctrl+S in the text tab. Layout is written inside the view declaration. | It opens exactly as you arranged it. |
Positions moved in auto layout are not saved. In auto layout mode, moving elements changes only the screen, not the .sysml. When you reopen the diagram, the auto layout returns. To keep a layout, switch to manual layout first.
Switching from manual to auto layout deletes the saved layout. You’re asked to confirm first, and you can undo it with ⌘/Ctrl+Z.
The sections separated by horizontal lines inside an element are compartments. They group an element’s contents by kind, such as attributes, parts, ports, doc, and require constraints (see Views in the sample).

capacity = 880 [W * h] in the structure diagram).A GridView shows model elements and relationships as a table. The sample’s view traceMatrix is a matrix of requirements (rows) and the parts and behaviors (columns) that take them on (allocate).
MiniRobotViews in the Model Tree). It opens as a matrix.DeliveryRobot as an allocation. You can also write it in the text, such as allocate Payload to battery;, or ask AI: “Also allocate R1 to the battery.”Why it opens as a matrix A view opens as a matrix when its declaration includes render ChangeVisionRenderings::asMatrix;. The rows, columns, and relationship types are set by GridSettings in the same view declaration.
| Task | How |
|---|---|
| Copy the whole diagram as an image | With nothing selected, ⌘/Ctrl+C → paste into slides or documents |
| Copy part of it | Select elements, then ⌘/Ctrl+C (only the area around them) |
| Export an SVG or PNG file | Right-click the diagram → Export as SVG or Export as PNG. You can also use … at the top right of the diagram tab → Diagram, or SysML Diagram: Export as SVG in the Command Palette. SVG stays sharp at any size. |
| Black and white for documents | ◐ on the panel (diagram theme: dark → light → mono), or the sysmlv2-modeler.diagramTheme setting |
This extension follows the official SysML v2 release 2026-09.1 (SysML 2.1 Beta 2).
| Resource | Where |
|---|---|
| Specification (OMG) | omg.org/spec/SysML |
| Specification PDFs (the version this extension follows) | The doc folder of the official release |
| Official sample models | sysml/src/examples (examples by topic) |
| Training examples | sysml/src/training (short examples, one notation at a time) |
Open an official sample folder with this extension to view it as diagrams or have your AI explain it.
| Symptom | What to check |
|---|---|
Opening a .sysml file shows no “Open Diagram”, the Model Tree is empty, or completion doesn’t work | Is another SysML v2 extension active? Search for sysml in the Extensions view, disable everything except SysMLv2 Modeler Early Access Version, and reload (see the note under Installation). You can also click the language mode in the status bar (bottom right) to see which extension’s language is in use. |
| No SysML v2 icon in the Activity Bar | Did you trust the folder? (If “Restricted Mode” appears at the top of the window, click it and choose Trust.) Did you accept the license agreement (and reload the window if you were asked to)? Did you open a folder (Open Folder…, not a single file)? |
| The AI can’t see the model | Did you turn on MCP in Settings? In Copilot: is the mode Agent, did you allow the tools, and if the AI doesn’t use them, did you switch the model? (Talk to it in GitHub Copilot Chat) With other AI agents: did you register it, and did you open the folder in VS Code before starting the agent? (Using other AI agents) |
If that doesn’t help, contact us.
Impressions, feature requests (“I wish it did…”), questions about how to use it, and bug reports all go to the same place. Good news and pain points are equally welcome.
Send them using the feedback form on the Early Access page.
From inside VS Code, you can also use SysML: Send Feedback / SysML: Report a Problem in the Command Palette (⌘/Ctrl+Shift+P).
When reporting a bug, besides what happened, what you expected and the steps, a small .sysml that reproduces it or an image of the diagram (copy with ⌘/Ctrl+C) makes the investigation much faster.
Read the license agreement any time with SysML: Show License Agreement in the Command Palette. Diagram images were drawn from the sample model by the actual extension.
What are you looking for?