MCP.so
Sign In

Token Disrespector MCP ServerVerifiedFeatured

@connorbless1990

Basic information

Last updated

License

MIT

Author

connorbless1990

Submitted by

Akshay Singh

About Token Disrespector MCP Server

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.

Token Disrespector MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "tds": {
      "command": "npx",
      "args": [
        "-y",
        "@token-disrespector/mcp"
      ]
    }
  }
}

Token Disrespector MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

Fetch the live tool list by running this server in a temporary sandbox using the button above.

Overview

What is Token Disrespector?

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.

How to use Token Disrespector?

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.

Key features of Token Disrespector

  • Content-routed compression: a different compressor per block type (JSON, logs, diffs, search results, code) instead of one generic shrinker.
  • Byte-exact retrieval: every original is recoverable through the MCP tool, so compression never loses information.
  • KV-cache stable: compressed output is deterministic across turns, so the upstream prompt cache stays warm.
  • Fail-open by design: malformed JSON, oversized bodies and upstream errors pass through unchanged.
  • Loopback only: everything runs on 127.0.0.1. No telemetry, no account, no data leaves the machine.
  • Zero runtime dependencies, MIT licensed, Node.js 20+.
  • Measured: an 88,239-character log tool result became 2,187 characters in the end-to-end suite; a 45,122-character JSON request became 13,660 through the proxy.

Use cases of Token Disrespector

  • Long agent sessions that keep resending the same large files on every turn.
  • Agents drowning in CI logs, test output or stack traces.
  • Code search and grep results flooding the context window.
  • Large unified diffs during review.
  • Any client that lets you override its API base URL and you want a smaller bill.

Frequently asked questions

1

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.

2

Do I need the MCP server?

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.

3

Which agents does it work with?

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.

4

Does compression break the model's prompt cache?

No, that was a primary design constraint. Compressed output is stable across turns, so the upstream KV cache stays valid.

5

What Node version do I need?

20 or newer. The packages ship compiled JavaScript, so no build step and no type-stripping flags.

6

Where is data stored?

~/.ctxroom by default; override with the TDS_HOME environment variable or tds proxy --home.

7

Is it really MIT?

Yes. LICENSE is in the repository and inside every published package. The source code is linked from the repository URL on this page.

8

Does Token Disrespector include a standard MCP config?

If the README contains a parseable MCP configuration block, it is shown in the Config tab.

Comments

More MCP servers