Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

reasonledger-mcp

The Model Context Protocol server for ReasonLedger. It lets a coding agent record the decision it just made — and recall the decisions already made — without leaving the session.

It is not a service

reasonledger-mcp speaks stdio. Your editor spawns it, and it exits when the editor does. It never listens on a port and never runs unattended. Nothing about installing it puts a process on your machine.

It is also optional. The whole import → review → confirm → why loop works with no MCP server at all; this package is for live capture, where the agent writes the decision as it makes it rather than having it reconstructed from docs later.

Tools

Tool What it does
record_decision Writes a Decision record to .reasonledger/decisions/<id>.md, checked for common PII and API-key patterns before it lands (a safety net, not a guarantee: keep secrets and personal data out of decision text)
query_decisions Retrieves prior decisions; semantic=true gives pre-decision recall rather than keyword match. At most limit (default 10) compact hits, in force first; full=true adds the markdown
decisions_for The decisions in force that cover the files you are about to edit
get_import_task, submit_candidates Backfill: your agent reads the docs and commit messages and proposes decisions, which a person confirms
get_judging_task, submit_verdicts Conflict checks: your agent judges related pairs of decisions
get_mapping_task, get_modules, submit_module_map Module map: your agent names the modules of your app

All of them operate on the repo root given by --repo-root (or the RL_MCP_REPO_ROOT environment variable), defaulting to the directory the editor spawned the server in.

Wiring it up

reasonledger init writes this config (and the agent's rule) for Claude Code, Cursor and VS Code, filled in with your actual paths. The shape is:

{
  "mcpServers": {
    "reasonledger": {
      "command": "reasonledger",
      "args": ["mcp", "--repo-root", "/path/to/your-app"]
    }
  }
}

If reasonledger is not on your PATH, init writes uvx as the command and ["reasonledger", "mcp", "--repo-root", …] as the arguments instead. reasonledger mcp runs the same server as the reasonledger-mcp executable. uv tool install reasonledger installs only reasonledger and rl, not reasonledger-mcp, so the config uses the mcp subcommand.

The server speaks stdio only: your editor starts it and it never opens a network port.

Requirements

Python 3.12+. Depends on reasonledger-core for the decision format, PII linter, and retrieval.

Most people want reasonledger (the CLI) as well — that is where init, import, ui, and why live.

Metadata

Release files for reasonledger-mcp 0.3.0a6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reasonledger-mcp 0.3.0a6
File Size Uploaded Provenance Actions
reasonledger_mcp-0.3.0a6.tar.gz 20.0 kB Without provenance Details for reasonledger_mcp-0.3.0a6.tar.gz

Built distribution (wheel)

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

Total release size: 36.0 kB

Release files / reasonledger_mcp-0.3.0a6.tar.gz

Download URL reasonledger_mcp-0.3.0a6.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9b579a415eb0d110e51659ca19e8c0b1764b371ddd50c2676a919cb0b4cba270
BLAKE2b-256 checksum
How to use checksums
8cd5c986e7af89d34d507da852b4d03436c3f1e98bcff0b5f25114194d1c32b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / reasonledger_mcp-0.3.0a6-py3-none-any.whl

Download URL reasonledger_mcp-0.3.0a6-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
589726ade0681d906c7896faa39e9a2a088c689d60cf055a2a4843454ecc82ac
BLAKE2b-256 checksum
How to use checksums
de90575c3ffd78c8285294a7e458ef330a957027c0576c18bfc73fa930b31c14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for reasonledger-mcp 0.3.0a6

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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