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–4 complete; backlog cleared; public publish optional
Python: 3.12+

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.

Quick start

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

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
# Or released tag: pip install "git+https://github.com/gusmartinuk/mirthcraft.git@v0.1.0"
# PyPI: pip install mirthcraft==0.1.0  (after Trusted Publisher is linked — docs/PYPI.md)

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

make check          # ruff + mypy + pytest
mirthcraft info

MCP (stdio) for IDEs

mirthcraft serve --transport stdio

Streamable HTTP (loopback):

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

Point Cursor / Antigravity / OpenHands at the mirthcraft CLI. See 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

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/SPEC.md Normative product/technical specification
docs/BACKLOG.md Prioritized work items
docs/DECISIONS.md Architecture Decision Records index
docs/PUBLISH_CHECKLIST.md Pre-public GitHub gate
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_

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.1.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.1.1
File Size Uploaded Provenance Actions
mirthcraft-0.1.1.tar.gz 121.4 kB With provenance Details for mirthcraft-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 186.9 kB

Release files / mirthcraft-0.1.1.tar.gz

Download URL mirthcraft-0.1.1.tar.gz
Size 121.4 kB
Tags Source
SHA-256 checksum
How to use checksums
230fbcecb24a83122ceb085fecb4f2632bb99edc262722c2b784004edc5fc8f3
BLAKE2b-256 checksum
How to use checksums
8636fd14c0e58260be7952abddd095c253d9385be06cb6a3c9d2ffbb39ee9436
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.1.1-py3-none-any.whl

Download URL mirthcraft-0.1.1-py3-none-any.whl
Size 65.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15797c524d6496638d223ee62ba504b078361a1ea6569ae6a161e6366ff961d1
BLAKE2b-256 checksum
How to use checksums
c28c8393162b517a3c43b98418745842a17002a22ac27364c42c521fe0b3e9c1
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.1.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.1.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