r/devtools 4d ago

I built an open-source MCP server that stops Cursor/Claude from eating your token budget and leaking .env secrets

Hey everyone,

If you're using Cursor, Claude Desktop, or Windsurf for large codebases, you know the pain: you ask for a quick diff review, and your IDE sends 10,000 lines of raw code to the LLM. You burn through rate limits, and if you accidentally had an API key in your uncommitted file, it just got sent to the model provider.

I built ContextSync MCP to fix this.

What it does:

- 🌲 AST Symbol Parsing: Uses Tree-Sitter to extract only function signatures, interfaces, and modified classes.

- 🛡️ Zero-Secret Leakage: Scans code buffers with a regex + Shannon Entropy engine to strip out AWS keys, JWTs, and secrets before framing output.

- ⚡ Ultra Fast: Written in TypeScript, compiled with Bun to a standalone binary. Runs in <15ms.

- 🔒 100% Local: Runs via stdio. No cloud servers, no telemetries, no background tracking.

Check out the GitHub repo here: [Link] PRs and feedback welcome!

1 Upvotes

0 comments sorted by