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.0a8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reasonledger_mcp-0.3.0a8.tar.gz | 20.2 kB | Without provenance | Details for reasonledger_mcp-0.3.0a8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reasonledger_mcp-0.3.0a8-py3-none-any.whl | Python 3 | none | any | Details for reasonledger_mcp-0.3.0a8-py3-none-any.whl |
Total release size: 36.4 kB
Release files / reasonledger_mcp-0.3.0a8.tar.gz
| Download URL | reasonledger_mcp-0.3.0a8.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a849ea728817eaca37c81a0ea34e156f166eeb95cd4ab893a807d0e1567541ed
|
|
BLAKE2b-256 checksum How to use checksums |
d441401398ad732be59841c15c795ebe8252caac81ed87b45803a4dfde950681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.0a8-py3-none-any.whl
| Download URL | reasonledger_mcp-0.3.0a8-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
991a5eee0fec4cfeb5f21bc9654b745638066268d456fd37f228c00485c80b60
|
|
BLAKE2b-256 checksum How to use checksums |
919e9b37dfbfdbe84bf7034d5a78636bf91bca9079162f14ccd08f9a7866319a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.0a8
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.