Skip to main content

MirthCraft

MCP bridge for Mirth Connect and Open Integration Engine (OIE). Safe discovery, diagnostics, workspace sync, and authoring, with environment policy gates and PHI/PII redaction.

License: Apache-2.0
Status: Alpha, Phases 1–6 complete; mirthcraft==0.3.1 (tag/PyPI via OPS-011)
Python: 3.12+

Quick start

Full guide: docs/QUICKSTART.md (ADR-0010).

# 30s offline demo (no Mirth server)
uvx mirthcraft demo

# 2 min live setup → ~/.mirthcraft/ (no secrets in mcp.json)
uvx mirthcraft init
uvx mirthcraft doctor

Cursor MCP (after init; zero secrets, CWD-safe):

{
  "mcpServers": {
    "mirthcraft": {
      "command": "uvx",
      "args": ["mirthcraft", "serve"]
    }
  }
}

Add MirthCraft MCP to Cursor

Fallbacks: pipx install mirthcraft or pip install mirthcraft. See docs/MCP.md.

Why MirthCraft

This is not a 1:1 REST wrapper. Design principles:

  1. Token economy + deterministic XML: LLMs edit .js / .json; MirthCraft patches .mirth_base.xml.
  2. Zero-trust by environment: PROD never registers write/deploy tools.
  3. Privacy by design: message content is redacted before it reaches the model.
  4. Git-friendly workspace: develop locally; MCP syncs, validates, and prepares releases.

Install

# Preferred desktop path
uvx mirthcraft --version

# Classic
pip install mirthcraft
# pin: pip install mirthcraft==0.3.1

mirthcraft info
mirthcraft doctor --offline

Operator config lives under ~/.mirthcraft/ after mirthcraft init (override with MIRTHCRAFT_HOME). Advanced env wiring: docs/lab/PASSWORD_WIRING.md.

Develop from source

git clone https://github.com/gusmartinuk/mirthcraft.git
cd mirthcraft

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

cp .env.example .env
# Prefer MIRTHCRAFT_PASSWORD_FILE for oielab (see docs/lab/PASSWORD_WIRING.md)

make check          # ruff + mypy + pytest
make verify-onboarding  # clean-room wheel + foreign CWD (MC-095)
mirthcraft info

MCP (stdio) for IDEs

uvx mirthcraft serve
# or: mirthcraft serve --transport stdio
# or: python -m mirthcraft serve --transport stdio

Streamable HTTP (loopback / team server; not the primary desktop install):

mirthcraft serve --transport http --host 127.0.0.1 --port 8080
# or: docker compose --profile http up mirthcraft-http

Snippets: docs/MCP.md. Agent loop: docs/AI_ORCHESTRATION.md.

Docker

docker compose build
docker compose run --rm mirthcraft info --json

Local labs

Lab Role Docs
Sibling OpenIntegration (oielab) Primary DEV (dev), OIE 4.7.0 docs/lab/OIELAB.md
mirthoss (labs/mirthoss) Second DEV (mirth_oss), Connect 4.5.2 docs/lab/MIRTH_OSS.md
make smoke-labs                 # skip-friendly if a lab is down
make e2e-phase2                 # oielab pull→lint→diff→dry-run→MLLP
make e2e-mirthoss-mllp          # mirthoss ADT ACK

# CLI parity (also available as MCP tools)
mirthcraft list-channels
mirthcraft pull
mirthcraft backup
mirthcraft topology --channel-dir workspace/channels/<slug>
mirthcraft deploy <channel-uuid>          # dry-run; add --apply for real
mirthcraft control <channel-uuid> start   # dry-run; add --apply for real

Documentation

All project records live under docs/ and are written in English (public-repo ready). Local spoken/command language may be Turkish; committed artifacts stay English.

Doc Purpose
docs/QUICKSTART.md 30s demo + 2min init (start here)
docs/SPEC.md Normative product/technical specification
docs/BACKLOG.md Prioritized work items
docs/PYPI.md Trusted Publishing / install
docs/DECISIONS.md Architecture Decision Records index
docs/AI_ORCHESTRATION.md Multi-AI workflow
docs/CHANGELOG.md Release / session change log

Naming

Component Value
Repo / product mirthcraft
Python package mirthcraft
MCP server name mirthcraft
CLI mirthcraft
Resource URI scheme mirthcraft://…
Env prefix MIRTHCRAFT_
User home ~/.mirthcraft (MIRTHCRAFT_HOME)

Trademarks

Mirth® and Mirth Connect® are registered trademarks of NextGen Healthcare. MirthCraft is an independent Apache-2.0 open-source project and is not affiliated with, endorsed by, or sponsored by NextGen Healthcare or the Eclipse Foundation. Open Integration Engine (OIE) and BridgeLink names are used solely to describe compatibility.

Safety

  • Never commit real PHI, passwords, or production URLs.
  • Fixtures must be synthetic.
  • PROD policy is read-only by construction (see tests/test_policy_gate.py).

Metadata

Release files for mirthcraft 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mirthcraft 0.3.1
File Size Uploaded Provenance Actions
mirthcraft-0.3.1.tar.gz 201.6 kB With provenance Details for mirthcraft-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mirthcraft 0.3.1
File Interpreter ABI Platform Actions
mirthcraft-0.3.1-py3-none-any.whl Python 3 none any Details for mirthcraft-0.3.1-py3-none-any.whl

Total release size: 295.1 kB

Release files / mirthcraft-0.3.1.tar.gz

Download URL mirthcraft-0.3.1.tar.gz
Size 201.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1513bf453079f43fe897680135cd5756b9096fc0351cf2507a3c148467d8cd82
BLAKE2b-256 checksum
How to use checksums
a33e26694606557472ebc2251d6415a814f39c3c5357388026fc619e4c42f486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / mirthcraft-0.3.1-py3-none-any.whl

Download URL mirthcraft-0.3.1-py3-none-any.whl
Size 93.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf8b43169e3b1cdbbe6dd3c6bcede167a8776aaaa003ff1fb05ac243e44b6518
BLAKE2b-256 checksum
How to use checksums
bfe0b13f4e8ca9aa19a1c43ec866f32a3e3cd64e98c19a574f518443f2c14ad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for mirthcraft 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mirthcraft-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page