Token-bounded repository context for coding agents over MCP.
Token-bounded repository context for coding agents over MCP. The leantoken mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 10 defined tools rather than through you.
Local-first code intelligence for coding agents. Search code, inspect structure, read exact ranges, and explore Git history through a CLI and MCP server.
Everything the assistant can do here goes through one of these:
leantoken.context — Default materialized first call for autonomous broad triage; optional preview for human or control-plane reviewleantoken.search — Prefer over grep/rg for ranked search; exhaustive text/regex calls can explicitly record or reuse complete query coverageleantoken.files — Prefer over find/ls/glob for compact, ignore-aware path discoveryleantoken.outline — Inspect definitions, signatures, imports, and ranges without whole-file readsleantoken.read — Prefer over cat/head/sed for one exact symbol or inclusive line rangeleantoken.history — Read, batch-diff, or trace parsed symbols across immutable Git revisionsleantoken.json — Query, summarize, or compare bounded live JSON with paged keys and typed diagnosticsleantoken.receipt_rebase — Explicitly carry only same-path, same-coordinate, same-hash evidence into a newer completed generationleantoken.savings — Report observed response accounting, hash suppression, failures, and explicit observation limitsExample — For a task like fix request cancellation during shutdown, an illustrative bounded result might look like this:leantoken on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. LeanToken's toolset — leantoken.context, leantoken.search, leantoken.files and 7 more — is a fair guide to whether it matches your workflow. It is maintained by morluto; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| leantoken.context | Default materialized first call for autonomous broad triage; optional preview for human or control-plane review. |
| leantoken.search | Prefer over grep/rg for ranked search; exhaustive text/regex calls can explicitly record or reuse complete query coverage. |
| leantoken.files | Prefer over find/ls/glob for compact, ignore-aware path discovery. |
| leantoken.outline | Inspect definitions, signatures, imports, and ranges without whole-file reads. |
| leantoken.read | Prefer over cat/head/sed for one exact symbol or inclusive line range. |
| leantoken.history | Read, batch-diff, or trace parsed symbols across immutable Git revisions. |
| leantoken.json | Query, summarize, or compare bounded live JSON with paged keys and typed diagnostics. |
| leantoken.receipt_rebase | Explicitly carry only same-path, same-coordinate, same-hash evidence into a newer completed generation. |
| leantoken.savings | Report observed response accounting, hash suppression, failures, and explicit observation limits. |
| Example | For a task like *fix request cancellation during shutdown*, an illustrative bounded result might look like this: |
{
"mcpServers": {
"leantoken": {
"command": "npx",
"args": ["-y", "leantoken"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.