Skip to content
Contact Us

Installation

Install the extension, connect to your Mirth server, and start syncing—all in under five minutes.

Before installing the extension:

  • Visual Studio Code 1.85.0+Download VS Code
  • Java 8+ (JRE or JDK) — Required by the MirthSync CLI
  • MirthSync CLI — The extension uses the CLI under the hood for sync operations
  • Mirth Connect 4.5.2+ or OIE — A running Mirth server to connect to
  • Mirth CLI — Ships with Mirth Connect / OIE, required for deploy, import/export, and server status commands

The extension requires the MirthSync CLI. Install it globally via npm:

Terminal window
npm install -g @saga-it/mirthsync

Verify the installation:

Terminal window
mirthsync --version

The Mirth CLI ships with Mirth Connect and Open Integration Engine installations. The extension uses it for channel deployment, import/export, and server status commands.

The extension auto-detects the Mirth CLI in these locations:

  • $MIRTH_HOME/cli/ environment variable (recommended)
  • Linux: /opt/mirth/cli/mirth-cli, /usr/local/mirth/cli/mirth-cli, /opt/mirthconnect/cli/mirth-cli
  • macOS: /Applications/Mirth Connect/cli/mirth-cli, /opt/mirth/cli/mirth-cli
  • Windows: C:\Program Files\Mirth Connect\cli\mirth-cli.bat, C:\Program Files (x86)\Mirth Connect\cli\mirth-cli.bat

If the Mirth CLI isn’t detected automatically, set the path in VS Code settings:

{
"mirthsync.mirthcliPath": "/opt/mirth/cli/mirth-cli"
}

Best for: Most users | Requirements: Internet access

  1. Open VS Code
  2. Click the Extensions icon in the Activity Bar (or press Ctrl+Shift+X)
  3. Search for “MirthSync”
  4. Click Install on the extension by Saga IT LLC
Terminal window
code --install-extension SagaITLLC.mirthsync

Press Ctrl+P in VS Code and paste:

ext install SagaITLLC.mirthsync

After installation, set up your first Mirth server connection:

Press Ctrl+Shift+P and run:

MirthSync: Add Connection

Provide your Mirth server information:

  • Connection name — A label for this connection (e.g., “Dev Server”, “Production”)
  • Server URL — Your Mirth Connect API URL (e.g., https://mirth-server:8443/api)
  • Username — Mirth Connect admin username
  • Password — Stored securely via the VS Code Secrets API
  1. In the Mirth Connections tree view (left sidebar), find your new connection
  2. Right-click and select Test Connection to verify
  3. Right-click and select Set as Active to activate it

You should see your connection status in the VS Code status bar.

With an active connection, pull your Mirth configurations:

  • Command Palette: Ctrl+Shift+PMirthSync: Pull All
  • Tree View: Right-click a channel group → Pull

Your channel files will appear in the VS Code file explorer, ready to edit.


After installation, confirm everything is working:

CheckHow to Verify
Extension loadedMirth Connections and Mirth Channels tree views appear in the sidebar
Status bar activeMirthSync connection indicator visible in the bottom status bar
CLI detectedRun MirthSync: Pull All — no “CLI not found” errors
Mirth CLI detectedRun MirthSync: Deploy Channel — no “mirth-cli not found” errors
Connection worksMirthSync: Test Connection returns success

CLI Not Found?

If the extension can’t find the MirthSync CLI, set the path manually in VS Code settings:

{
"mirthsync.mirthsyncPath": "/usr/local/bin/mirthsync"
}

Or find it with which mirthsync (Linux/macOS) or where mirthsync (Windows).