leanproxy-mcp

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ΒΆ

LeanProxy-MCP

LeanProxy

Your local-first MCP security layer β€” and the proxy that slashes your AI token bill

Go Release License Test Lint Coverage

πŸ“– Documentation: mmornati.github.io/leanproxy-mcp Β· Installation Β· Quick Start Β· Configuration


Latest Benchmark

Measured by make harness: the real leanproxy-mcp server run --stdio binary, driven over pipes, in front of 5 mock MCP servers that serve a realistic 118-tool catalog (GitHub, Jira/Confluence, Slack, Garmin, Postgres). Run on linux/amd64 (4 CPUs) at commit 430f9a8. Tokens use pkg/reporter.Estimator (1 token β‰ˆ 4 chars). Every row below is a line of bench-results/harness.md.

Metric Measured Threshold Status
Session savings, Morning Sport (4 prompts, 2 servers): list_tools / search_tools discovery βˆ’86.0% (+3 turns) / βˆ’93.5% (+4 turns) – measured
Session savings, Dev Workflow (5 prompts, 2 servers): list_tools / search_tools βˆ’74.0% (+3 turns) / βˆ’84.4% (+6 turns) – measured
Session savings, Full Day (7 prompts, 3 servers): list_tools / search_tools βˆ’70.9% (+4 turns) / βˆ’65.0% (+10 turns, 3 search misses) – measured
search_tools lookup (k=5), 83 labeled intents 152 tokens avg (vs 907 for list_tools(server)), right tool in top 5 for 85.5% – measured
Proxy overhead, p50 / p95 (proxied βˆ’ direct) 0.56 / 0.74 ms p95 < 5 ms βœ…
500-call pipelined burst over 5 servers 0 errors, 9,723 req/s 0 errors βœ…
50 parallel calls to a 100 ms tool 205 ms wall < 1 s βœ…
5 MB tool response relayed 581 ms (direct: 51 ms) relayed intact βœ…
Large tool results (a 200 KB file + 4 list/search endpoints) with the opt-in response governor, max_tokens: 4000 234,700 β†’ 18,515 tokens (βˆ’92.1%), pages back byte-identical via read_result β‰₯ 50% βœ…
Repeated reads in one session (opt-in response.dedup: on), same file re-read 3Γ— 13,780 β†’ 3,640 tokens (βˆ’73.6%), a repeat read is 98.1% smaller β‰₯ 30% βœ…
Secret redaction, both directions (incl. search_tools output) 0 of 3 fake secrets leaked active βœ…
Proxy RSS, idle / after burst 20.4 / 22.5 MiB – measured
Binary size (linux/amd64, stripped) 16.4 MiB < 20 MB βœ…

The savings include LeanProxy's own discovery outputs (list_servers, list_tools, search_tools), and the table reports the extra turns they cost. Earlier versions of this table left both out and reported 81.5–93.7% session savings. Methodology, assumptions and full results: docs/benchmark-results.md.


Your Local-First MCP Security Layer

MCP servers run arbitrary, third-party code with your credentials and your filesystem access, and their tool descriptions and results are untrusted input the model reads. LeanProxy sits in front of every one of them, locally, and adds the layer most setups are missing:

  • Redacts secrets in tool arguments and responses, both directions, before they reach an LLM provider. On by default: 29 built-in patterns, plus your own; an optional high-entropy detector.
  • Screens for prompt injection (opt-in, injection.enabled: true) in requests and tool output, with configurable risk-band actions (block / quarantine / redact / log) and a local classifier.
  • Pins every upstream tool definition and flags drift ("rug pulls"), scans descriptions for hidden instructions and invisible unicode.
  • Per-tool policy: allow / deny / confirm rules by tool and by annotation (e.g. require confirmation on anything destructiveHint), refuses calls to tools a server never advertised.
  • Sandboxes third-party stdio servers in a container with no network and no filesystem access by default, and gives each server a minimal environment instead of your full one.
  • One command tells you where you stand: leanproxy-mcp doctor security β€” a local-only, read-only report mapped to the OWASP MCP Top 10, with a --json form for CI. See docs/security.md for the full threat model β€” what this protects against and what it does not.

None of this calls out to a third-party service: the proxy, the classifier, the redaction patterns and the report all run on your machine, against your own config. LeanProxy only contacts other services for features you turn on: OpenAI embeddings for hybrid tool search, OpenTelemetry export, and marketplace sync (see the FAQ).


One Gateway for Every Session

By default each client session starts its own proxy, and each proxy its own copy of every MCP server. Run LeanProxy once instead:

leanproxy-mcp daemon install    # one background service (launchd / systemd --user)
leanproxy-mcp daemon clients    # the snippet for Claude Code, Codex, Copilot, Cursor, OpenCode
leanproxy-mcp daemon open       # the admin dashboard

Every client connects to the same gateway by URL and shares one set of servers. The dashboard shows each server with a one-line diagnosis, the connected clients and the latest tool calls, and can restart, add, disable or remove a server; server add from a terminal is picked up in seconds, with no restart.

Guide and a 70-second video: Shared Gateway and Admin Dashboard.


The MCP Schema Tax is Killing Your AI Budget

Every MCP server you connect injects thousands of tokens into every LLM request β€” even when you never use it. This is the "Schema Tax":

flowchart LR
    IDE["Your IDE"] --> MCP["MCP Gateway"]

    subgraph MCP["MCP Gateway"]
        S1["GitHub (42 tools)"]
        S2["Jira (24 tools)"]
        S3["Slack (14 tools)"]
        S4["Garmin (28 tools)"]
        S5["Postgres (10 tools)"]
    end

    MCP --> LLM["LLM Provider"]

    total["TOTAL: ~10,049 tokens of tool schemas, on every request"]

    S1 -.-> total
    S2 -.-> total
    S3 -.-> total
    S4 -.-> total
    S5 -.-> total
    total -.-> LLM

    style MCP fill:#ff6b6b,color:#fff
    style LLM fill:#ee5a5a,color:#fff

The result? You're burning tokens on tool definitions you'll never use in that session. The numbers above are the harness catalog's native tools/list payloads; see Latest Benchmark.

Honest caveat: some clients now do their own tool search or deferred loading (Claude Code, Claude Desktop, Cursor, VS Code). For those, LeanProxy lists every upstream tool directly (passthrough, #322) instead of hiding them behind a router β€” the schema tax above is their problem to solve, not one LeanProxy still needs to. The security layers (redaction, injection guard, policy, pinning) still apply to every listed tool and every call either way. See Real Results, Real Savings for what LeanProxy actually saves on the response side, which does not depend on which mode a client uses.


Enter LeanProxy: Your Token Firewall

LeanProxy sits between your IDE and MCP servers as a smart gateway. It loads tool schemas only when needed β€” reducing the schema tax to a single 318-token router payload (4 tools: search_tools, list_servers, list_tools, invoke_tool). The model finds a tool across every server with one search_tools call, then runs it with invoke_tool.

Clients with native tool search get the tools directly. Claude Code, Claude Desktop, Cursor and VS Code already defer and search large tool lists themselves, so LeanProxy lists every upstream tool for them as <server>__<tool> (passthrough mode) and stays the aggregation and security layer: pinning, per-tool policy, redaction, the injection guard and the response governor still apply to every listed tool and every call. Any other client gets the router. Which IDE gets which mode, and why: Quick Start; the measured trade-off: benchmark Β§10.

flowchart LR
    IDE["Your IDE"] --> Gateway["LeanProxy Gateway"]

    subgraph Gateway["LeanProxy Gateway"]
        Router["Router: 4 tools (~318 tokens)"]
        JIT["JIT Schema Loading"]
        Cache["Automatic Caching"]
        Firewall["Token Firewall"]
        Pool["Connection Pooling"]
    end

    Gateway -.->|"loads on demand"| GH["GitHub"]
    Gateway -.->|"loads on demand"| Garmin["Garmin"]
    Gateway -.->|"loads on demand"| Intervals["Intervals.icu"]

    Router --> Firewall --> Pool --> GH
    Router --> Firewall --> Pool --> Garmin
    Router --> Firewall --> Pool --> Intervals

    Router --> JIT
    JIT --> Cache

    style Gateway fill:#1a1a2e,color:#fff
    style Router fill:#00ADD8,color:#fff
    style JIT fill:#00ADD8,color:#fff
    style Cache fill:#00ADD8,color:#fff
    style Firewall fill:#00ADD8,color:#fff
    style Pool fill:#00ADD8,color:#fff

Real Results, Real Savings

65–94% Fewer Tokens per Session (measured by make harness)
Session Native MCP (0.25Γ— cache read) LeanProxy, list_tools discovery Savings Extra LLM turns LeanProxy, search_tools discovery Savings Extra LLM turns
Morning Sport (4 prompts, 2 of 5 servers) 17,586 2,470 βˆ’86.0% +3 1,148 βˆ’93.5% +4
Dev Workflow (5 prompts, 2 of 5 servers) 20,098 5,234 βˆ’74.0% +3 3,143 βˆ’84.4% +6
Full Day (7 prompts, 3 of 5 servers) 25,123 7,302 βˆ’70.9% +4 8,793 βˆ’65.0% +10

How these are counted.

  • Native MCP. All 5 configured servers' tools/list payloads are in context on every turn: the first turn at full price, later turns at the 0.25Γ— cache-read rate.
  • LeanProxy.
    • The 318-token router is in context from the start.
    • Discovery outputs join the context the turn they are fetched, at full price. With list_tools: list_servers on the first turn, and list_tools(server) the first time a server is used. With search_tools: one search the first time a tool is needed; when the tool is not in the top 5 (3 of Full Day's 7 queries), the model falls back to list_tools(server) and pays both.
    • Later turns re-read everything already in context at 0.25Γ—.
  • Extra LLM turns. Each discovery call is one extra round-trip. The table counts them, but their token cost is not included, so the savings are an upper bound.
  • Tool results. They are the same on both paths and left out of both.
What Sits in Context Before the First Tool Call
Configuration Native tools/list LeanProxy router Savings
1 server (GitHub, 42 tools) 4,443 tokens 318 tokens βˆ’92.8%
1 server (Jira/Confluence, 24 tools) 2,043 tokens 318 tokens βˆ’84.4%
1 server (Garmin, 28 tools) 1,795 tokens 318 tokens βˆ’82.3%
1 server (Slack, 14 tools) 1,128 tokens 318 tokens βˆ’71.8%
1 server (Postgres, 10 tools) 640 tokens 318 tokens βˆ’50.3%
5 servers (118 tools) 10,049 tokens 318 tokens βˆ’96.8%

This table counts only the static schema load. LeanProxy fetches tools on demand, with search_tools (152 tokens per lookup on average) or list_tools (GitHub: 1,638 tokens), and the session table above includes that cost. See docs/benchmark-results.md for the per-server list_tools sizes and the full methodology.


How LeanProxy Compares

A non-exhaustive comparison against other self-hostable MCP gateways/proxies, based on each project's own public documentation at the time of writing (2026-09); verify against the linked source before relying on any row, since these projects move fast.

LeanProxy MCPProxy ToolHive Docker MCP Gateway LiteLLM MCP Gateway
Local, self-hosted binary βœ… βœ… βœ… βœ… βœ…
Response-side token governor (per-tool budgets, projection, dedup, spill-store paging) βœ… not documented not documented not documented not documented
Prompt-injection classifier (request + response) βœ… (local, no network call) not documented not documented not documented not documented
Tool pinning / rug-pull drift detection βœ… βœ… (schema quarantine) not documented as such not documented not documented
Per-tool allow/deny/confirm policy βœ… not documented βœ… (access policies) not documented βœ… (per key/team/org)
Sandboxes stdio servers (container isolation) βœ… (opt-in, docker/podman) not documented βœ… (runs servers via Docker/Podman) βœ… (host-local) not applicable (model-call gateway)
Native tool search / BM25 discovery βœ… (search_tools) βœ… (BM25) not documented not documented not documented
Primary focus MCP proxy: token cost + local security MCP proxy: tool discovery + quarantine MCP runtime: deployment, OAuth/OIDC, policy, audit MCP proxy: container-based server aggregation LLM gateway: 100+ model providers, MCP as one feature

LeanProxy's niche is the combination: token-cost reduction (response governor, schema loading) and a local, no-network-call security layer (redaction, injection guard, policy, pinning) in one small Go binary. ToolHive and Docker MCP Gateway focus more on deployment/runtime concerns (OAuth, Kubernetes, container orchestration); LiteLLM's MCP support is one feature of a much broader LLM-gateway product; MCPProxy is the closest in spirit (tool discovery + a quarantine concept) but does not document a response-side token governor or a request/response injection classifier.


Key Features

Feature Benefit
πŸ›‘οΈ Token Firewall Redacts secrets in tool arguments and responses (on by default) and, when enabled, screens calls for prompt injection β€” in server run --stdio, server run --http and serve
⚑ JIT Schema Loading Tool schemas load only when actually called β€” not on every request
πŸ”Ž Works With Native Tool Search Passthrough mode for clients that defer tools themselves (Claude Code, Cursor, VS Code, Claude Desktop): every tool listed as <server>__<tool> with full metadata and tools/list_changed, every security layer still applied; --exposure or exposure: to choose per client (docs)
βœ‚οΈ Response Token Governor Opt-in: drops unneeded JSON fields per tool (keep/drop projection rules, a default noise pack, or the model's fields argument), caps large tool results (smart head/tail truncation, structural JSON truncation), dedups a result byte-identical to one already seen this session (never across sessions), and can hand a still-oversized result to a local Ollama model for summarization (falls back to truncation on any failure) β€” keeps the full result per session for paged read_result / grep / jsonpath retrieval β€” βˆ’92% on a large-results session, βˆ’72% from projection alone on a GitHub issue listing, βˆ’74% on a repeated-reads session (docs)
πŸ”„ Connection Pooling HTTP MCP clients reuse connections; concurrent calls to a stdio server are multiplexed over its single pipe
πŸ“¦ Multi-Transport Upstream servers over stdio, Streamable HTTP or SSE; clients over stdio or one shared Streamable HTTP gateway (server run --http)
πŸ“Š Auditable Savings Report leanproxy-mcp report built from counters the proxy actually recorded, by tool, server or session; export to CSV, JSON or Markdown
🩺 Security Report leanproxy-mcp doctor security: local, read-only checks mapped to the OWASP MCP Top 10, with --json for CI

Quick Start

Releases are published for macOS and Linux (amd64 and arm64). There is no Windows release. Full guide: Installation.

Install
# macOS/Linux via Homebrew
brew tap mmornati/leanproxy-mcp https://github.com/mmornati/leanproxy-mcp
brew install leanproxy-mcp

Or download the latest release for your platform:

VERSION=$(curl -fsSL https://api.github.com/repos/mmornati/leanproxy-mcp/releases/latest | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')
OS=$(uname -s | tr '[:upper:]' '[:lower:]'); ARCH=$(uname -m)
case "$ARCH" in x86_64) ARCH=amd64 ;; aarch64) ARCH=arm64 ;; esac
curl -fsSL "https://github.com/mmornati/leanproxy-mcp/releases/download/${VERSION}/leanproxy-mcp_${VERSION#v}_${OS}_${ARCH}.tar.gz" | tar xz leanproxy-mcp
sudo mv leanproxy-mcp /usr/local/bin/
Add Your MCP Servers
# Import the servers your IDE already has (preview first)
leanproxy-mcp migrate --dry-run
leanproxy-mcp migrate

# ...or add one by hand: note the "--" before the server's command
leanproxy-mcp server add filesystem -- npx -y @modelcontextprotocol/server-filesystem "$HOME/projects"

Servers live in ~/.config/leanproxy_servers.yaml.

Connect Your IDE

Every client starts the same command, leanproxy-mcp server run --stdio. For Claude Code:

claude mcp add leanproxy -- leanproxy-mcp server run --stdio

For OpenCode (~/.config/opencode/opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "leanproxy": {
      "type": "local",
      "command": ["leanproxy-mcp", "server", "run", "--stdio"],
      "enabled": true
    }
  }
}

Claude Desktop, Cursor, VS Code, and one shared HTTP gateway for several clients (server run --http): see Connect your client.

Check It
# See which security layers your config turns on
leanproxy-mcp doctor security

# Auditable savings report, built from real counters (docs/savings-report.md)
leanproxy-mcp report
leanproxy-mcp report --export md --output report.md

Architecture

flowchart TB
    subgraph IDE["Your IDE"]
        Client[(MCP Client)]
    end

    subgraph Gateway["LeanProxy Gateway"]
        Router["Router<br/>(4 tools, ~318 tokens)"]
        JIT["JIT Schema Cache"]
        Firewall["Token Firewall<br/>(Secret Redaction)"]
        Pool["Connection Pool<br/>(multiplexed stdio)"]
    end

    subgraph Servers["MCP Servers"]
        GH["GitHub<br/>(stdio)"]
        Garmin["Garmin<br/>(HTTP)"]
        Intervals["Intervals.icu<br/>(SSE)"]
    end

    Client <--> Router
    Router <--> JIT
    Router <--> Firewall
    Firewall <--> Pool

    Pool --- GH
    Pool --- Garmin
    Pool --- Intervals

    JIT -.->|"loads on call"| GH
    JIT -.->|"loads on call"| Garmin
    JIT -.->|"loads on call"| Intervals

    style Gateway fill:#1a1a2e,color:#fff
    style Router fill:#00ADD8,color:#fff
    style JIT fill:#00ADD8,color:#fff
    style Firewall fill:#00ADD8,color:#fff
    style Pool fill:#00ADD8,color:#fff

v0.11: What's New

Feature Description
πŸ”Ž search_tools Ranked (BM25, optional hybrid embeddings) tool search across every server in one call
πŸ”€ Exposure Modes Passthrough for clients with their own tool search (Claude Code, Claude Desktop, Cursor, VS Code), router for the rest; --exposure / exposure: to choose
🌐 Streamable HTTP Front End server run --http: one local, token-protected gateway shared by several MCP clients; replaces the deprecated serve
βœ‚οΈ Response Token Governor Opt-in truncation with paged read_result, per-tool field projection, in-session dedup and optional local-LLM summarization
πŸ“Œ Tool Pinning Hashes every upstream tool definition, warns about or blocks rug pulls and poisoned descriptions (leanproxy-mcp tools pins)
🚦 Per-Tool Policy Allow / deny / confirm rules per server.tool glob and annotation; no calls to tools a server does not advertise (leanproxy-mcp policy check)
πŸ›‘οΈ Prompt-Injection Guard v2 Scans decoded text and tool outputs, per-direction risk-band actions, optional local judge model
πŸ“¦ Sandbox Optional Docker/Podman isolation for stdio servers, with no network and no host filesystem by default
πŸ” Least-Privilege Environment Stdio servers get a minimal environment instead of the proxy's full one (doctor env)
πŸ›’ Marketplace Integrity Official MCP Registry by default, version-pinned installs, a trust score from verifiable signals only, confirm before enable
🩺 doctor security Local security report mapped to the OWASP MCP Top 10
πŸ“Š Auditable report Savings report from real counters, exportable to CSV, JSON or Markdown
πŸ“ˆ OpenTelemetry Opt-in OTLP traces and metrics for the MCP pipeline
πŸ”„ MCP Protocol Upgrade Version negotiation, resources and prompts aggregation, sampling/roots/elicitation relay, progress and cancellation

See CHANGELOG.md for the full list and the breaking changes.

See CHANGELOG.md for the features removed in v0.10 (budget management, federation, model routing, lazy tool-schema loading, and the MLX sidecar placeholder) because they were never wired into any command.


Join the Community

GitHub β€’ Documentation β€’ Issues


License

MIT Β© Marco Mornati

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
internal
logx
Package logx provides lazy, redacted, truncated slog attributes for hot-path logging.
Package logx provides lazy, redacted, truncated slog attributes for hot-path logging.
pkg
bouncer
Package bouncer provides token validation, secret pattern matching, and streaming redaction for MCP proxy request/response filtering and security enforcement.
Package bouncer provides token validation, secret pattern matching, and streaming redaction for MCP proxy request/response filtering and security enforcement.
bridge
Package bridge connects an MCP client that only speaks stdio to a Streamable HTTP MCP endpoint, the shared LeanProxy gateway in practice.
Package bridge connects an MCP client that only speaks stdio to a Streamable HTTP MCP endpoint, the shared LeanProxy gateway in practice.
codemode
Package codemode is the experimental "code mode" spike (issue #325): the model sends one execute_code call holding a short JavaScript program, the program calls upstream tools and filters their results inside a sandbox, and only its final value goes back into the context window.
Package codemode is the experimental "code mode" spike (issue #325): the model sends one execute_code call holding a short JavaScript program, the program calls upstream tools and filters their results inside a sandbox, and only its final value goes back into the context window.
gateway
Package gateway provides the MCP gateway tools (list_servers, list_tools, invoke_tool) of the `serve` TCP front end.
Package gateway provides the MCP gateway tools (list_servers, list_tools, invoke_tool) of the `serve` TCP front end.
httpsec
Package httpsec holds the Host/Origin validation, bearer-token and security-header helpers shared by LeanProxy's local HTTP servers: the admin endpoints (pkg/dashboard, pkg/metrics, issue #316) and the Streamable HTTP MCP front end (pkg/streamhttp, issue #309).
Package httpsec holds the Host/Origin validation, bearer-token and security-header helpers shared by LeanProxy's local HTTP servers: the admin endpoints (pkg/dashboard, pkg/metrics, issue #316) and the Streamable HTTP MCP front end (pkg/streamhttp, issue #309).
mcp
mcp/exposure
Package exposure decides how LeanProxy exposes the upstream tools to one MCP client (issue #322): through its own discovery router (search_tools, list_servers, list_tools, invoke_tool), or directly, every upstream tool listed in tools/list under a namespaced name, so a client with native tool search (Claude Code, the Anthropic and OpenAI APIs, Cursor, ...) can defer and discover the tools itself.
Package exposure decides how LeanProxy exposes the upstream tools to one MCP client (issue #322): through its own discovery router (search_tools, list_servers, list_tools, invoke_tool), or directly, every upstream tool listed in tools/list under a namespaced name, so a client with native tool search (Claude Code, the Anthropic and OpenAI APIs, Cursor, ...) can defer and discover the tools itself.
mcp/governor
Package governor holds the building blocks of the response token governor (issue #319): its `response:` config block, the per-session spill store that keeps the full (redacted) result of a shortened tool call, the smart text and structural JSON truncation, the read_result retrieval primitives (paging, grep, a JSONPath subset), and the field projection of #320 (project.go).
Package governor holds the building blocks of the response token governor (issue #319): its `response:` config block, the per-session spill store that keeps the full (redacted) result of a shortened tool call, the smart text and structural JSON truncation, the read_result retrieval primitives (paging, grep, a JSONPath subset), and the field projection of #320 (project.go).
mcp/responsecache
Package responsecache implements the opt-in, exact-match tools/call response cache (issue #299): a bounded-by-bytes LRU keyed on the pre-redaction request, storing the redacted response.
Package responsecache implements the opt-in, exact-match tools/call response cache (issue #299): a bounded-by-bytes LRU keyed on the pre-redaction request, storing the redacted response.
migrate
Package migrate owns the on-disk YAML schema for LeanProxy's user-server configuration.
Package migrate owns the on-disk YAML schema for LeanProxy's user-server configuration.
policy
Package policy is the per-tool policy layer (issue #314, audit S14, OWASP MCP02 / MCP07): which upstream tools a client may call, which ones need a human's confirmation first, and which ones are refused.
Package policy is the per-tool policy layer (issue #314, audit S14, OWASP MCP02 / MCP07): which upstream tools a client may call, which ones need a human's confirmation first, and which ones are refused.
pool
Package pool provides stdio MCP server subprocess pooling and management.
Package pool provides stdio MCP server subprocess pooling and management.
registry/mcpregistry
Package mcpregistry is a client for the official MCP Registry API (https://registry.modelcontextprotocol.io/, API version v0), used as the default marketplace source (issue #313).
Package mcpregistry is a client for the official MCP Registry API (https://registry.modelcontextprotocol.io/, API version v0), used as the default marketplace source (issue #313).
streamhttp
Package streamhttp is LeanProxy's own MCP Streamable HTTP front end (issue #309): one shared local gateway that any number of MCP clients reach by URL, instead of every IDE spawning its own `server run --stdio` process with its own child servers.
Package streamhttp is LeanProxy's own MCP Streamable HTTP front end (issue #309): one shared local gateway that any number of MCP clients reach by URL, instead of every IDE spawning its own `server run --stdio` process with its own child servers.
telemetry
Package telemetry is the optional OpenTelemetry bootstrap for leanproxy-mcp (issue #317): OTLP/HTTP trace and metric exporters, off by default.
Package telemetry is the optional OpenTelemetry bootstrap for leanproxy-mcp (issue #317): OTLP/HTTP trace and metric exporters, off by default.
toolpin
Package toolpin pins upstream tool definitions and detects tool poisoning and rug pulls (issue #310, OWASP MCP03).
Package toolpin pins upstream tool definitions and detects tool poisoning and rug pulls (issue #310, OWASP MCP03).
toolsearch
Package toolsearch is the ranked, cross-server tool index behind the search_tools gateway tool (issue #305).
Package toolsearch is the ranked, cross-server tool index behind the search_tools gateway tool (issue #305).
usage
This file (issue #324) rebuilds an auditable savings breakdown purely from counters the proxy actually recorded: the response governor's GovernorStats (#319-#321), the schema/discovery counters (#324) and telemetry's plain counters (#317), all read from this package's JSONL store (Store.Load).
This file (issue #324) rebuilds an auditable savings breakdown purely from counters the proxy actually recorded: the response governor's GovernorStats (#319-#321), the schema/discovery counters (#324) and telemetry's plain counters (#317), all read from this package's JSONL store (Store.Load).
servers
filesystem command
github command
postgres command
redis command
tests
bench/live_snapshot command
Package live_snapshot provides a tool that queries configured MCP servers to capture a ground-truth snapshot of their tool counts and total schema payload size.
Package live_snapshot provides a tool that queries configured MCP servers to capture a ground-truth snapshot of their tool counts and total schema payload size.
harness
Package harness is the end-to-end benchmark and conformance harness for leanproxy-mcp (issue #301).
Package harness is the end-to-end benchmark and conformance harness for leanproxy-mcp (issue #301).
harness/catalogmcp command
Command catalogmcp is the stdio MCP server the end-to-end harness (tests/harness, issue #301) proxies through leanproxy-mcp.
Command catalogmcp is the stdio MCP server the end-to-end harness (tests/harness, issue #301) proxies through leanproxy-mcp.
manual command
Smoke test that proves the per-server timeout fix end-to-end.
Smoke test that proves the per-server timeout fix end-to-end.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL