Installation
Install the extension, connect to your Mirth server, and start syncing—all in under five minutes.
Prerequisites
Section titled “Prerequisites”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
Install MirthSync CLI
Section titled “Install MirthSync CLI”The extension requires the MirthSync CLI. Install it globally via npm:
npm install -g @saga-it/mirthsyncVerify the installation:
mirthsync --versionInstall Mirth CLI
Section titled “Install Mirth CLI”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"}Installation
Section titled “Installation”Best for: Most users | Requirements: Internet access
Option A: Install from VS Code
Section titled “Option A: Install from VS Code”- Open VS Code
- Click the Extensions icon in the Activity Bar (or press
Ctrl+Shift+X) - Search for “MirthSync”
- Click Install on the extension by Saga IT LLC
Option B: Install via Command Line
Section titled “Option B: Install via Command Line”code --install-extension SagaITLLC.mirthsyncOption C: Quick Open
Section titled “Option C: Quick Open”Press Ctrl+P in VS Code and paste:
ext install SagaITLLC.mirthsyncBest for: Air-gapped environments, restricted networks | Requirements: VSIX file
For environments without internet access, install from a .vsix package:
Step 1: Download the VSIX
Section titled “Step 1: Download the VSIX”On a machine with internet access, download the latest .vsix from:
- VS Code Marketplace (click Download Extension on the right side)
- GitHub Releases
Step 2: Transfer and Install
Section titled “Step 2: Transfer and Install”Transfer the .vsix file to the target machine, then install:
code --install-extension mirthsync-0.1.11.vsixOr from within VS Code:
- Open the Command Palette (
Ctrl+Shift+P) - Run Extensions: Install from VSIX…
- Browse to the
.vsixfile
First Connection Setup
Section titled “First Connection Setup”After installation, set up your first Mirth server connection:
Step 1: Open the Command Palette
Section titled “Step 1: Open the Command Palette”Press Ctrl+Shift+P and run:
MirthSync: Add ConnectionStep 2: Enter Connection Details
Section titled “Step 2: Enter Connection Details”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
Step 3: Test and Connect
Section titled “Step 3: Test and Connect”- In the Mirth Connections tree view (left sidebar), find your new connection
- Right-click and select Test Connection to verify
- Right-click and select Set as Active to activate it
You should see your connection status in the VS Code status bar.
Step 4: Pull Your First Configuration
Section titled “Step 4: Pull Your First Configuration”With an active connection, pull your Mirth configurations:
- Command Palette:
Ctrl+Shift+P→MirthSync: Pull All - Tree View: Right-click a channel group → Pull
Your channel files will appear in the VS Code file explorer, ready to edit.
Verify Installation
Section titled “Verify Installation”After installation, confirm everything is working:
| Check | How to Verify |
|---|---|
| Extension loaded | Mirth Connections and Mirth Channels tree views appear in the sidebar |
| Status bar active | MirthSync connection indicator visible in the bottom status bar |
| CLI detected | Run MirthSync: Pull All — no “CLI not found” errors |
| Mirth CLI detected | Run MirthSync: Deploy Channel — no “mirth-cli not found” errors |
| Connection works | MirthSync: 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).