mcp-compression-proxy: Instructions file for Claude Code

CLAUDE.md

mcp-compression-proxy CLAUDE.md is an instructions file for Claude Code from kdpa-llc/mcp-compression-proxy. It costs 2,079 tokens per session, scanned A, original, MIT.

Repository instructions for an MCP server that combines tools from several backend servers and shortens their descriptions to use less conversation context.

In plain words
What is it for?
Use them when developing, testing, linting, type-checking, or changing the configuration of this MCP server and its command-line tool.
Why use it?
They give coding agents the project-specific commands, file locations, and testing rules needed to avoid stale builds and failed checks.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is kdpa-llc/mcp-compression-proxy's own configuration. It tells Claude Code how to work on mcp-compression-proxy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-compression-proxy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kdpa-llc/mcp-compression-proxy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kdpa-llc/mcp-compression-proxy/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/kdpa-llc/mcp-compression-proxy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-compression-proxy CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kdpa-llc/mcp-compression-proxy/claude-md/github.svg)](https://agentmods.dev/instructions/kdpa-llc/mcp-compression-proxy/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kdpa-llc/mcp-compression-proxy/claude-md"><img src="https://agentmods.dev/badge/instructions/kdpa-llc/mcp-compression-proxy/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-compression-proxy CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kdpa-llc/mcp-compression-proxy/claude-md"><img src="https://agentmods.dev/badge/instructions/kdpa-llc/mcp-compression-proxy/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,079 This file is loaded in full into every session.
When invoked 2,079 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02079 $0.02079
Opus 5.5 $0.00832 $0.00832
Sonnet 5.5 $0.00416 $0.00416
Haiku 4.5 $0.00208 $0.00208

Measured 1mo ago against content hash 4f5199a6c2c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-compression-proxy CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

Guidance for Claude Code and other coding agents working in this repository.

What this is

An MCP server that aggregates tools from several backend MCP servers behind one connection, and compresses their descriptions to cut context use.

Two binaries ship:

  • mcp-compression-proxy (src/index.ts) — the MCP server itself
  • mcp-cli (src/cli/) — progressive tool discovery backed by a daemon that holds warm connections to the backends

The MCP server's handlers live in src/proxy/session.ts (ProxySession), built from one client's view (src/proxy/client-view.ts: its config, backends and tool catalog) and shared services; src/index.ts only wires a session to stdio, or attaches to the daemon with backendMode: "daemon". The daemon (src/cli/daemon.ts) hosts one session per attached proxy (src/daemon/session-host.ts) and answers mcp-cli from the view of the shell each request came from (src/daemon/cli-requests.ts). Backend connections are pooled in src/mcp/backend-pool.ts, keyed by what a backend runs rather than its name, over src/mcp/client-manager.ts; the shared, exclusion-filtered tool list is src/mcp/tool-catalog.ts; compression state, output shaping (--want/--where), call suggestions and the compression audit in src/services/; ranked search and usage learning in src/search/; the optional local model (Cactus Needle 3 through python/needle_bridge.py) in src/models/; the native proxy's discovery tools in src/native/; config loading and ${VAR} expansion in src/config/.

Commands

npm run build          # tsc
npm test               # full suite (builds first via pretest)
npm run test:unit      # unit only
npm run test:coverage  # global coverage floors
npm run test:coverage:patch -- --base origin/main --head HEAD # exact committed patch gate
npm run lint           # eslint, must be 0 problems
npm run typecheck      # tsc --noEmit
npm run sync-version   # align src/version.ts with package.json

pretest builds before testing on purpose: three integration suites spawn dist/index.js and dist/cli/index.js as real subprocesses, so a stale or missing build fails them with MODULE_NOT_FOUND.

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +6 lines · +88 tokens per session 4f5199a6c2c0
  2. 1mo ago Changed · +52 lines · +882 tokens per session e4b11688a7ac
  3. 2mo ago First seen · 103 lines · 1,109 tokens per session scan A 6326bf0fe54b

Subscribe to this mod's changes

mcp-compression-proxy CLAUDE.md is an instructions file published in the GitHub repository kdpa-llc/mcp-compression-proxy (7 stars, last pushed yesterday), licensed MIT. It adds 2,079 tokens to every session, about $0.0083 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mcp-compression-proxy CLAUDE.md compared with instructions from other repositories

mcp-compression-proxy CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-compression-proxy CLAUDE.mdkdpa-llc/mcp-compression-proxyInstructions file7yesterdayMITA2,079Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode