loreto-mcp
v1.3.0MCP server for Loreto: your code is your context.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_agents List Agents
List the coding agents Loreto writes a harness for, and where each one reads its files.
read_repo Read Repo
Read a GitHub repository's history and show what its harness would hold. Free; nothing is charged. Returns what it found: anti-patterns it will block (reverted code shapes), abstractions to reuse, deprecated code still in use, duplication worth simplifying, and what the history says (how big a change is, where the work lands, what changes together). Then the files the harness would write for the chosen agent, the prices, and a read_id for buy_harness. A large repository can take a few minutes the first time; if it is still reading, call this again with the same repo.
| Parameter | Type | Description |
|---|---|---|
repo * | string | A GitHub repository, as a URL or owner/name. |
agent | string | One of claude-code, codex, muse-code, opencode, hermes, cursor, deepseek, antigravity, copilot (list_agents shows where each reads its files). |
buy_harness Buy Harness
Start buying the harness for a repository read with read_repo. Returns a Stripe checkout link for the PERSON to open and pay; the agent cannot pay. Then call get_harness.
| Parameter | Type | Description |
|---|---|---|
agent | string | The coding agent. Defaults to the one read with. |
files | Optional subset of root, skill, reviewer, conventions, hotspots, coupling, reverts ($2 each). Omit for the whole harness ($5). | |
read_id | string | From read_repo. Defaults to the last repository read. |
get_harness Get Harness
After the person has paid: wait for the harness to be written, then install it into the repository at `path`. The root file (CLAUDE.md / AGENTS.md) is merged between loreto markers, never overwritten; README and evidence go under .loreto/; Hermes skills go to ~/.hermes/skills. The skill's scripts come too: guardrails.py blocks reverted code and warns on deprecated calls, check-change.py checks a change before a pull request. Run it again at any time to reinstall the latest purchase.
| Parameter | Type | Description |
|---|---|---|
path | string | The repository to install into. Defaults to the current directory. |
session_id | string | Optional; defaults to the last checkout started with buy_harness. |
ask_repo Ask Repo
Ask about a repository whose harness was bought (why was this reverted, who knows this code, what breaks if this file changes). Answered from its git history; 25 questions per purchase.
| Parameter | Type | Description |
|---|---|---|
question * | string | The question, in plain language. |
read_id | string | Optional; defaults to the most recent purchase. |
check_approach Check Approach
Before writing code for a non-trivial change, ask whether it should be built this way in THIS repository. Returns a verdict (good to go, risky, don't merge or not sure), the evidence behind it (commits, reverts, decision records, co-change, tests, owners), what the change would touch, and a better route when there is one. Runs Gitology locally; the code stays on this machine.
| Parameter | Type | Description |
|---|---|---|
approach * | string | The change you plan to make, in plain language. |
path | string | The repository (default: the current directory). |
plan_change Plan Change
Write a change kit for a request: verdict.md, SPEC.md (goal, rules, files not to touch, how to know it worked) and STEPS.md (one file, one edit and one check per step, small enough for a small model). Returns STEPS.md. `gitology prove <kit>` then builds it with a small model and checks every step before anyone relies on it.
| Parameter | Type | Description |
|---|---|---|
request * | string | What should change, in plain language. |
name | string | Optional folder name under .gitology/changes/. |
path | string | The repository (default: the current directory). |
list_model_harnesses List Model Harnesses
List the free model harnesses: one per open-weight model (Qwen, GLM, DeepSeek, Gemma, gpt-oss, Nemotron, Kimi, MiniMax, Mistral...), each fitting an agent to that model's known problems. query filters by name, id or maker, e.g. "qwen" or "glm-5.3".
| Parameter | Type | Description |
|---|---|---|
query | string |
get_model_harness Get Model Harness
Install the free harness for an open-weight model into a repository: rules for the model's known problems, agent settings, code checks, a loop breaker, a second-opinion reviewer and a setup check. Free, no account. Re-running updates it; your own root file and settings are kept. model: an id from list_model_harnesses, e.g. "glm-5.3-flash" agent: claude-code, opencode, codex, hermes or deepseek mode: economy (Quick fixes), balanced (Everyday), attack (Hard problems) or defend (Careful changes) build: optional, the Hugging Face id of the exact build you serve, e.g. "unsloth/Qwen3.8-27B-GGUF"
| Parameter | Type | Description |
|---|---|---|
model * | string | |
agent | string | |
build | string | |
mode | string | |
path | string |