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–5 complete; mirthcraft==0.2.0 on PyPI
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.

Install

pip install mirthcraft
# pin: pip install mirthcraft==0.2.0

mirthcraft --version
mirthcraft info

Point at a lab or server with env vars (or a custom environments.yaml):

export MIRTHCRAFT_TARGET=dev
export MIRTHCRAFT_BASE_URL=https://127.0.0.1:18443
export MIRTHCRAFT_PASSWORD_FILE=/path/to/password
# Optional: MIRTHCRAFT_CONFIG=/path/to/environments.yaml
# (redaction_rules.yaml / coding_standards.yaml fall back to packaged defaults)

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
mirthcraft info

MCP (stdio) for IDEs

mirthcraft serve --transport stdio
# or: python -m 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 PyPI mirthcraft binary (absolute path) or python -m mirthcraft, with MIRTHCRAFT_*_PASSWORD_FILE. Copy-paste 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/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_

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

Built distribution (wheel)

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

Total release size: 238.3 kB

Release files / mirthcraft-0.2.0.tar.gz

Download URL mirthcraft-0.2.0.tar.gz
Size 159.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8fa643cea51e52b1a84b369d1386ebc5ce5acc0243cf77e368dabd975fe59fb7
BLAKE2b-256 checksum
How to use checksums
e0768890570db93ccd513497d4214d712b8d1e1ef7d1eedcf12d3cb914291f1e
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.2.0-py3-none-any.whl

Download URL mirthcraft-0.2.0-py3-none-any.whl
Size 78.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b257bcc86583bd9d30b492909e82f5d4faedfd37d780b6414b29a76c3eff38b7
BLAKE2b-256 checksum
How to use checksums
a2f52077f13d32ddb199ffcaac1b13797e3ee2e0a86488d99ef15bb1d9923a14
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.2.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.2.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