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.1.tar.gz (26.0 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.1-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mrpd-0.1.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mrpd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e5130866f9e7268add1a95df8f4e0760c441040d4ce702414eaeca028a4049a9
MD5 1e5b9fdeaf712324a7139850ed690a6c
BLAKE2b-256 7479c68c2105c5bf94958c9a49821d6c0cd774e65657bfdf139a3e50050dbbfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrpd-0.1.1.tar.gz:

Publisher: publish-pypi.yml on thorthur22/Moltrouter-Protocol-Daemon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mrpd-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 41.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mrpd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf8cd8d18ce371f4cfad67ac686b6f8a8e1c3f64737c42aaeb800e8358be0d7
MD5 6f13041e3e030861cdadd8e33838a00a
BLAKE2b-256 1844f1456d60573feb96c1c981d069f1b31ce4df8509045d8282c563d98e52dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mrpd-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on thorthur22/Moltrouter-Protocol-Daemon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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