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.0 (tag/PyPI via OPS-009 after Antigravity review)
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.0

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)

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

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.0
File Size Uploaded Provenance Actions
mirthcraft-0.3.0.tar.gz 193.3 kB With provenance Details for mirthcraft-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 286.3 kB

Release files / mirthcraft-0.3.0.tar.gz

Download URL mirthcraft-0.3.0.tar.gz
Size 193.3 kB
Tags Source
SHA-256 checksum
How to use checksums
85442008f5f7a488014bd41cdc5e7d65f88c57ae3148fc0bae3c3c4577c842dd
BLAKE2b-256 checksum
How to use checksums
1ef2f95a03af27dd3236e63223de32c584655bb3a508f0a5fe6c22d5dcb0bc19
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.0-py3-none-any.whl

Download URL mirthcraft-0.3.0-py3-none-any.whl
Size 93.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b9ccddf8155ecf664e99972b36444a7a85497d2732a22d49dc337104e157044
BLAKE2b-256 checksum
How to use checksums
d16170a3b6df05aa76b06c769dddfafac2d25e476b866ac7025e4d5716497942
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.0

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