Skip to main content

Moltrouter Protocol Daemon: serve, route, bridge, validate

Project description

mrpd — Moltrouter Protocol Daemon

One installable package that can:

  • serve MRP endpoints for local tools (mrpd serve)
  • route intents as a client (mrpd route ...) (v0: registry query + ranking)
  • bridge other tool ecosystems (OpenAPI/MCP) into MRP (mrpd bridge ...)
  • mrpify existing systems with a guided flow (mrpd mrpify ...)
  • validate MRP envelopes against schemas/fixtures (mrpd validate) (working)

Status

Minimal server + validation are working.

Implemented:

  • Bundled canonical JSON Schemas + fixtures
  • mrpd validate (including --fixtures)
  • mrpd route (v0: query + rank + fetch manifests)
  • mrpd bridge openapi + mrpd mrpify openapi
  • mrpd bridge mcp (scaffold) + mrpd mrpify mcp

Planned next:

  • negotiate/execute
  • MCP bridge execute (stdio)

Dev

python -m venv .venv
. .venv/bin/activate  # (Windows PowerShell: .\.venv\Scripts\Activate.ps1)
pip install -e .

mrpd serve --reload

Bridge / Mrpify (v0)

OpenAPI:

mrpd bridge openapi --spec openapi.yaml --out-dir ./mrp-openapi-bridge
mrpd mrpify openapi --spec openapi.yaml --out-dir ./mrp-openapi-bridge \
  --provider-id service:openapi/bridge --public-base-url https://YOUR_DOMAIN

MCP (stdio scaffold):

mrpd bridge mcp --tools-json tools.json --mcp-command node --mcp-arg server.js
mrpd mrpify mcp --tools-json tools.json --mcp-command node --mcp-arg server.js \
  --provider-id service:mcp/bridge --public-base-url https://YOUR_DOMAIN

Validate

Run the bundled conformance fixtures:

mrpd validate --fixtures

Validate a single envelope JSON file:

mrpd validate --path path/to/envelope.json

Route (v0)

mrpd route queries a registry and prints ranked candidates. Registry entries must include manifest_url.

Defaults:

  • Registry base URL: https://www.moltrouter.dev
  • No raw bootstrap fallback is used unless explicitly configured (see below).

Examples:

mrpd route "inspect router capability" --capability router --policy no_pii --limit 5

Optional bootstrap (mostly for offline/dev):

  • Env var: MRP_BOOTSTRAP_REGISTRY_RAW (supports file://...)
  • Or CLI: mrpd route ... --bootstrap-raw file:///C:/path/to/registry.json

Example:

mrpd route "inspect router capability" --capability router --policy no_pii \
  --bootstrap-raw "file:///C:/path/to/registry.json"

Endpoints (initial)

  • GET /.well-known/mrp.json
  • GET /mrp/manifest
  • POST /mrp/hello
  • POST /mrp/discover
  • POST /mrp/negotiate
  • POST /mrp/execute

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mrpd-0.1.0.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mrpd-0.1.0-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file mrpd-0.1.0.tar.gz.

File metadata

  • Download URL: mrpd-0.1.0.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for mrpd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7debf9e5a7af1caf74292f453baab5f1fefd37a9b455f8896b2c43fa50c88150
MD5 73f77bc2e810a74cb0320fa9e9f3d504
BLAKE2b-256 7f177ddec77e993d0117cdfdee799acbec0eee59de2cf7f97c49702e0ad56075

See more details on using hashes here.

File details

Details for the file mrpd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mrpd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for mrpd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c41d4ac51e1f152491eb7f4cf828c06458e3fd6a8d049d4decd4b460aa7af8ee
MD5 825cc1f921d2bce2251787e81f624f58
BLAKE2b-256 f49e3a1a629c6e13ab499ec682a9fcb41b48bf5a658cc9938888aa8e4a8590a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page