loreto-mcp

v1.3.0
loreto-mcp Checked 4 hours ago Published 7 days ago

MCP 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.

ParameterTypeDescription
repo *stringA GitHub repository, as a URL or owner/name.
agentstringOne 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.

ParameterTypeDescription
agentstringThe coding agent. Defaults to the one read with.
filesOptional subset of root, skill, reviewer, conventions, hotspots, coupling, reverts ($2 each). Omit for the whole harness ($5).
read_idstringFrom 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.

ParameterTypeDescription
pathstringThe repository to install into. Defaults to the current directory.
session_idstringOptional; 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.

ParameterTypeDescription
question *stringThe question, in plain language.
read_idstringOptional; 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.

ParameterTypeDescription
approach *stringThe change you plan to make, in plain language.
pathstringThe 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.

ParameterTypeDescription
request *stringWhat should change, in plain language.
namestringOptional folder name under .gitology/changes/.
pathstringThe 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".

ParameterTypeDescription
querystring

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"

ParameterTypeDescription
model *string
agentstring
buildstring
modestring
pathstring