Skip to main content
Back to writing

This record updates the project judgement / MCP Slim Guard

MCP Slim Guard Alpha: 76% Fewer MCP Tokens with Exact Recovery

A launch note on MCP Slim Guard Alpha: tool discovery, one-call delivery, read_result recovery, the 24-task benchmark, and current host support.

In this record04
  1. 01One Upstream Call, Two Delivery Paths
  2. 02Standard Benchmark: 71,388 → 17,007 Tokens
  3. 03Current Host Support
  4. 04Install the Alpha

MCP tool catalogs and oversized results consume agent context. Truncation can discard the source needed for inspection and continued work.

MCP Slim Guard delivers eligible MCP content as a compact view and stores one immutable snapshot. When the agent needs the source, read_result reads the snapshot. One upstream call covers the whole path.

One Upstream Call, Two Delivery Paths

The current Alpha provides two integration surfaces:

  • Generic progressively exposes tools through find_tool, call_tool, and read_result.
  • Native keeps the original names of authorized tools and decides whether to pass through or compact the result at delivery time.

Both surfaces use the same delivery contract. Slim Guard forwards the selected arguments unchanged and runs the upstream tool once per request. Eligible long text, uniform JSON, and log-like results produce a compact view. Other results keep the upstream format.

The compact view carries a recovery reference. read_result uses it to read the immutable snapshot, keeping the upstream call count at one.

Standard Benchmark: 71,388 → 17,007 Tokens

The frozen standard benchmark covers 12 deterministic tools and 24 bilingual tasks. It uses o200k_base to count the MCP exposure and normal task path:

MetricDirectMCP Slim Guard
Normal-path tokens71,38817,007
Tasks completed24/2424/24
Upstream calls2424

The normal path used 76.18% fewer MCP tokens. All 24 tasks completed with one upstream call per task.

The bilingual Alpha benchmark methodology contains the fixtures, o200k_base counting method, and task-level results.

A separate synthetic stress test with 100 tools and an 8,000-row result recorded an upper bound of 99.7%, showing the delivery behavior at an extreme catalog and result size.

Current Host Support

HostCurrent Alpha surface
CodexNative preferred, Generic fallback
Claude CodeGeneric
VS CodePreview
OpenCodePost-Alpha

Slim Guard focuses on reversible MCP result delivery. Authorization, exact routing, and audit behavior serve that delivery path.

Install the Alpha

$ pnpm add -g mcp-slim-guard@alpha

Use the GitHub README for host-specific setup, migration, and rollback instructions. The current release is 0.1.1-alpha.1 and requires Node.js 20 or newer.

Same upstream call. Exact recovery.