REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Reduce your AI bills by up to 99% locally: focused code, warm prompt caches & zero secret leaks.
Pick the AI app you use, then copy the settings.
Passed 5/5 checks · What you ask goes through the maker’s server (api.tokensafe.dev) · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude · about 2 min
No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it
CustomizeConnectors
Copy each value into the field with the same name in Claude, then click Continue
TokenSafehttps://api.tokensafe.dev/mcpClick Continue past the sign-in settings Claude detected · under Authentication choose what the maker says (Sign in now, Sign in when needed or No sign in), then click Add
+ConnectorsTokenSafe
Use TokenSafe and tell me what you can do for me, then show me one thing✓ If Claude says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with ChatGPT, depending on your plan
Full MCP: ChatGPT Business, Enterprise or Edu on the web · Pro: connects with read/fetch permissions, so tools that change data may not work · Plus: not confirmed in OpenAI’s docs; if you see an add-custom-MCP option on the Plugins page you can try these steps · web only
Plugins+Add custom MCP server
Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin
TokenSafehttps://api.tokensafe.dev/mcpStart a new chat and pick TokenSafe from your plugins before typing
Use TokenSafe and tell me what you can do for me, then show me one thing✓ If ChatGPT says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected
Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Claude Code · about 2 min
No key, nothing to install
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --transport http --scope user tokensafe https://api.tokensafe.dev/mcpYou should see TokenSafe listed as connected
Use TokenSafe and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor · about 2 min
No key, nothing to install
Use TokenSafe and tell me what you can do for me, then show me one thing✓ If Cursor says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code · about 2 min
No key, nothing to install
Use TokenSafe and tell me what you can do for me, then show me one thing✓ If VS Code says it is using TokenSafe or shows a TokenSafe tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
Address for apps that connect over the web
https://api.tokensafe.dev/mcpJSON settings are under “For developers” below
Claude Code
claude mcp add --transport http --scope user tokensafe https://api.tokensafe.dev/mcpCursor (~/.cursor/mcp.json)
{
"mcpServers": {
"tokensafe": {
"url": "https://api.tokensafe.dev/mcp"
}
}
}VS Code (mcp.json)
{
"servers": {
"tokensafe": {
"type": "http",
"url": "https://api.tokensafe.dev/mcp"
}
}
}Claude Code
claude mcp add --scope user tokensafe -- npx -y tokensafe mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"tokensafe": {
"command": "npx",
"args": [
"-y",
"tokensafe",
"mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"tokensafe": {
"command": "npx",
"args": [
"-y",
"tokensafe",
"mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"tokensafe": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tokensafe",
"mcp"
]
}
}
}These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
npm: tokensafepypi: tokensafeBased on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Connect over the internet in
ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Tool names and descriptions exactly as the server reported them on Nov 14, 2026. The maker wrote them, not us; we show them as plain text.
get_public_statsReturns aggregated public TokenSafe stats (total tokens saved, active teams). No auth.
check_latest_versionChecks the client version against the latest published tokensafe release.
get_license_statusValidates the Bearer license key and returns tier, expiry and trial state.
get_team_metricsReturns the authenticated account's dashboard data: savings, telemetry stats, licenses and team seats.
distill_promptManaged Cloud Distillation: compiles a verbose developer prompt into a dense TOCP S-expression server-side. Requires Solo/Team license.
team_cache_lookupLooks up a shared team distillation cache entry by hash. Requires Team license.
team_cache_storeStores a distilled result in the shared team cache so teammates reuse it. Requires Team license.
list_invoicesLists Stripe billing invoices for the authenticated account.
get_setup_instructionsReturns exact MCP configuration snippets for a coding agent (cursor, claude_desktop, claude_code, codex, windsurf, antigravity, gemini_cli).
search_docsSearches the built-in TokenSafe knowledge base (features, install, tiers, privacy).
generate_team_seatTeam owner: provisions a seat license for a member email.
revoke_team_seatTeam owner: revokes a previously issued seat license.
preview_weekly_digestTeam owner: previews the weekly team stats digest (same data as the Friday email).
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 14, 2026
The registry name was verified against the domain tokensafe.dev (the registry checks domain ownership)
Code last changed yesterday
Uses MIT
Responded in 197 ms (HTTP 200)
No sign-in needed
Read 13 tool descriptions and found no hidden instructions to the AI
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 5 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
Either way works: install it on your computer or connect to the cloud version.
The GitHub repo last changed yesterday, and the latest version (3.1.1) reached the registry today.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT on the web (full MCP on Business and above; Pro read-only).
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
TokenSafe
Local-First Context Control, Prompt Caching & Secret Guardrails for Coding Agents
Reduce your AI bills by up to 99%. Let your team ship clean code faster and cheaper.
Your coding agents read only the code each task needs and keep prompt caches intact across turns. Everything runs locally on your machine, so your team fixes fewer broken edits and keeps secrets out of git.
Works with Cursor, Claude Code, Codex, Windsurf, Google Antigravity, Gemini CLI, and ChatGPT .
Install • Quickstart • Why TokenSafe • Benchmarks • Pricing • FAQ • Reference • Website & Docs
Connect TokenSafe to the AI coding agents on your workstation in one command:
# Option 1: Zero-Install via npx (recommended)
npx tokensafe
pip install tokensafe && tokensafe
curl -fsSL https://tokensafe.dev/install.sh | bash
The installer detects which agents live on your machine, registers the TokenSafe MCP server, injects project rules, and wires lifecycle hooks where the agent supports them.
| Agent | Integration |
|---|---|
| Google Antigravity | Plugin symlink + hooks + skills + MCP (loaded automatically on startup) |
| Claude Code CLI | MCP + SessionStart / UserPromptSubmit / PreToolUse hooks |
| Cursor | MCP + beforeShellExecution / beforeReadFile hooks |
| Claude Desktop | MCP registration (claude_desktop_config.json) |
| Windsurf | MCP registration + global rules |
| OpenAI Codex | MCP in ~/.codex/config.toml (stdio + cloud HTTP natively) |
| Cline / Roo Code | MCP registration (VS Code) |
| GitHub Copilot | MCP registration |
| Z.ai Code | MCP registration |
| ChatGPT | Cloud connector, nothing to install |
| Gemini CLI | MCP registration |
Claude Desktop / Cursor MCP config:
{
"mcpServers": { "tokensafe": { "command": "npx", "args": ["-y", "tokensafe", "mcp"] } } }
Cloud features (team metrics, managed distillation, shared team cache, billing) run on the remote endpoint https://api.tokensafe.dev/mcp with Authorization: Bearer . Four public tools work without a key, so ChatGPT connects with authentication set to None.
Full per-agent configuration, hook details, and the Codex/ChatGPT setup live in docs/AGENT_SETUP.md.
# View live savings dashboard in your terminal
tokensafe stats
⚡ TOKENSAFE CONTEXT OPTIMIZER DASHBOARD
Total Tokens Saved: 4,524,156 tokens Efficiency Gain: [████████████████████████░░] 92.5% Context Traffic: 4,889,255 raw → 370,574 optimized (2,132 events)
• Command Sanitizer (CLI) : 727,300 tokens saved (263 events) • Architecture Graph : 758,256 tokens saved (13 events) • Multi-turn History Fold : 2,897,897 tokens saved (471 events) • Prompt Compactor (local+cache) : 43,502 tokens saved (1,255 events)
# Audit your environment: MCP tool overhead, skills tax, risky settings
tokensafe doctor
tokensafe guard audit
tokensafe test "fix the validate_token method in src/auth.py to check jwt expiration"
tokensafe graph
tokensafe mcp disable
tokensafe digest
tokensafe activate TS2.eyJlbWFpbCI6...
The full command reference (24 commands) is in Reference.
Giving coding agents raw access to entire repositories creates three daily costs:
.cursorrules wear off mid-session. Agents hardcode fallback credentials, disable TLS checks, or stage .env files with git add ..| Outcome | What changes for your team | How it is enforced |
|---|---|---|
| Clean code on the first pass | Agents read only target functions, design tokens, and 1-hop dependencies instead of 2,000 lines of noise. | Sub-30ms local AST skeletonizer, architecture graph, predictive signature prefetch, lockfile-stripping diff slicer, loop guard. |
| Zero leaked secrets in git | Hardcoded password fallbacks, TLS bypasses, raw SQL interpolation, and .env commits are stopped before reaching disk or staging. | Deterministic TokenSafe Guard on every tool call, output guard on large writes, local PII/key redaction. |
| Predictable sprint velocity & ROI | Teammates get warm cache hits, and CTOs receive a Friday ROI digest separating measured and estimated savings. | Shared team cache, live context budget HUD, per-seat dashboard. |
A $29 seat pays for itself by saving one hour of senior code review or preventing one leaked key. Typical payback: 1 to 3 days of team usage.
One contrast: an agent asked to change one helper in a 1,420-line file receives 94 lines of target logic and type contracts instead of the whole module. The same principle applies to terminal output, diffs, and session history.
| What breaks coding agents | How TokenSafe fixes it | The outcome |
|---|---|---|
| "Lost in the Middle" context fade: an agent reads a 2,000-line file to change one 10-line helper, forgets imports, and invents methods. | AST skeletonizer folds inert bodies into typed signatures while keeping the target symbol and 1-hop callees intact. | Focused signal: the model keeps full type contracts without drowning in unrelated logic. |
Terminal log flooding: npm test or pytest fails and dumps 4,000 lines of stack traces and lockfile diffs into context. | Command sanitizer strips lockfile noise and trims output to the failing assertion and stack frame. | Root-cause fixes instead of unrelated rewrites. |
Infinite wait on background tests: yarn test hangs in watch mode, or jest finishes but unclosed handles keep the process alive. | Test-runner guard forces run-once mode (CI=true, --watch=false, --forceExit) and peeks at /package.json to identify the runner behind opaque scripts. | The test run terminates with an exit code and the agent moves on. |
| 5-attempt retry loops: an agent repeats the same broken edit until the context budget runs dry. | Loop guard detects repeated identical tool calls and halts the cycle. | Stuck loops stop before damaging working modules. |
Unsafe edits & secret leaks: fallback keys, verify=False, SQL string interpolation, or git add . with .env present. | TokenSafe Guard audits writes and shell commands locally before execution. | Credentials, SQLi patterns, and destructive commands are blocked locally. |
When an operation is blocked, the agent sees an explicit, constructive message:
🛡️ TokenSafe Guard: Blocked a hardcoded secret fallback in config.py.
Leave the default empty or read from os.environ at runtime.
Clean context, better code
tokensafe:smart_read_file returns the target function plus its 1-hop dependencies instead of the whole file. 11 languages (Python, TypeScript/JavaScript, Go, Rust, Java, C#, C/C++, PHP, Kotlin, Ruby, Swift), with CSS design tokens preserved so agents never invent colors or font rules.tokensafe:smart_bundle reads 3–8 related symbols across files as one merged bundle — shared imports deduplicated, 1-hop signatures unified, a single roundtrip instead of chained reads.symbol and get that entry plus its 1-hop references — a 5,000-line migration drops from ~30k tokens to a few hundred.tokensafe:graph maps architectural hotspots and dependency topology in under 250 tokens instead of a full repository crawl — and teams share the result: the indexed graph and API surface are cached per repo state in the Team Symbol Index, so the 19 developers after the first one skip the crawl entirely.git status/git diff floods and docker build tails, and forces JS test runners into run-once mode so background tests never hang. Malformed JSON tool arguments from small local models are repaired in-flight instead of failing the call.Local-first guardrails
verify=False, rejectUnauthorized: false), interpolated SQL, and CORS wildcards with credentials..env and key files from staging, including blanket git add . when sensitive files exist in the working tree.curl -d @.env https://...), and warns on known typosquat packages.Auditable team ROI
measured / estimated split; inactive seats show —, never guessed figures.Deeper mechanics (language matrix, context tax math, cache tiers, governor) live in docs/ARCHITECTURE.md.
Reference run across 10 produ