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.2 on PyPI
Python: 3.12+

MirthCraft offline CLI demo

Offline walkthrough: demo → doctor → validate → diff → PROD tool gate. Regenerate with make record-demo.

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.2

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.2

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.2
File Size Uploaded Provenance Actions
mirthcraft-0.3.2.tar.gz 995.7 kB With provenance Details for mirthcraft-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / mirthcraft-0.3.2.tar.gz

Download URL mirthcraft-0.3.2.tar.gz
Size 995.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f07d642a17ad78d655913f0a1c6dfcd92c60096578b0d578458c62ab9a93ce22
BLAKE2b-256 checksum
How to use checksums
a2550d1f8df33bd7461376ade2283577c39edd05897f162dfacfa9819fdd8ef3
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 6, 2026.

Transparency log

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

Download URL mirthcraft-0.3.2-py3-none-any.whl
Size 100.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ade96413d28b239ddb26b5fd74c2d3f3230eb5a916ed8a39b15805db394a9e1a
BLAKE2b-256 checksum
How to use checksums
1af5d2bdbf3cf03e333d6d26015bed8f9d6c7692a0941ddfd98584b360e73375
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 6, 2026.

Transparency log

Security for mirthcraft 0.3.2

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.2.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 6, 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