Does my code leave my machine?
No. The proxy listens on 127.0.0.1 only. Compression and storage are local; the only outbound traffic is the request to the model endpoint you already configured.

@connorbless1990
基本情報
Cut your AI coding agent's token spend. Compresses large request blocks locally, keeps every original one tool call away, and never breaks the KV cache.


以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"tds": {
"command": "npx",
"args": [
"-y",
"@token-disrespector/mcp"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。
Token Disrespector is a local-first context compressor for AI coding agents. It runs a proxy on 127.0.0.1 that sits between your agent and the model, and rewrites the huge parts of each request — file dumps, command output, search results — before they are sent.
Each large block is compressed with a compressor chosen for its content type and replaced with a short marker holding a 12-character handle. The original bytes stay on disk. When the model actually needs one back, it calls the bundled MCP tool with the handle and receives the exact original.
The design is deliberately conservative: it fails open (any error passes the request through untouched), it is loopback-only, and it is KV-cache aware — compressed output stays stable across turns so the model server's prompt cache keeps working. Naive rewriting invalidates that cache and quietly erases the savings.
Written in TypeScript, MIT licensed, zero runtime dependencies, Node.js 20 or newer.
Install the CLI and start the proxy:
npm i -g token-disrespector
tds proxy
Point your agent's API base URL at http://127.0.0.1:8788/v1, then check what you saved:
tds stats
To let the model retrieve compressed originals, add the MCP server to your client:
{
"mcpServers": {
"tds": {
"command": "npx",
"args": ["-y", "@token-disrespector/mcp"]
}
}
}
It exposes two tools: tds_retrieve returns the byte-exact original for a handle, and tds_stats reports cache size and per-day savings. Requires Node.js 20 or newer.
No. The proxy listens on 127.0.0.1 only. Compression and storage are local; the only outbound traffic is the request to the model endpoint you already configured.
The proxy alone reduces what is sent. The MCP server is what lets the model fetch an original back when it genuinely needs it, so you should run both.
Any client that lets you point its API base URL at a local endpoint (http://127.0.0.1:8788/v1). The CLI also ships `tds copilot` for the GitHub Copilot CLI.
No, that was a primary design constraint. Compressed output is stable across turns, so the upstream KV cache stays valid.
20 or newer. The packages ship compiled JavaScript, so no build step and no type-stripping flags.
~/.ctxroom by default; override with the TDS_HOME environment variable or tds proxy --home.
Yes. LICENSE is in the repository and inside every published package. The source code is linked from the repository URL on this page.
If the README contains a parseable MCP configuration block, it is shown in the Config tab.

Google Gemini MCP - Use Google's visual, video and chat capabilities in your AI Assistant. Uses MCP Apps to preview created images, landing pages, SVGs and video

The system of record for AI-written software. A persistent graph of entities, relationships, changes, and provenance, so humans and AI agents see what a change touches before it merges. Beside Git today.
NetFoundry LLM Gateway is an OpenAI-compatible API proxy that routes requests across multiple LLM providers using zero-trust networking. Zero trust LLM gateway. OpenAI-compatible proxy with semantic routing and load bala
Coral is more than just an open-source MCP gateway. It gives AI agents precise permissions and reusable custom tools. Agents call tools by writing short TypeScript programs, and save the ones that work as custom tools, i
Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications.
コメント