token-optimizer-mcp

MCP-Server von ooples · MCP-Server

MCP-Server für Anthropic · lesen und schreiben · MIT · lokal (stdio)

Löscht und führt Befehle ausWas der Baustein im Konto darf

Beschreibung des Anbieters

Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%.

Eckdaten

—: Angabe nicht belegt.

Maintainer
ooples
Repository-Lizenz
MIT
Letzter Repository-Commit

Commit innerhalb 90 Tagen

Dienstanbieter
Offizielle Dienstherkunft nicht belegt
Dienste
Anthropic
Bereiche
Büro
Plattformen
—
Version
7.3.0
Release
v7.3.0
Clients
Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline, Gemini CLI, Roo Code, Zed, OpenCode
Repository-Themen
ai, caching, claude, compression, llm, mcp, mcp-server, token-optimization, gemini-cli-extension

Werkzeuge

optimize_text
Compress and cache text to reduce token usage. Returns compressed version and saves to cache for future use. Angabe des Anbieters · Beleg 5
get_cached
Retrieve previously cached and optimized text. Returns the original text if found in cache. Angabe des Anbieters · Beleg 5
count_tokens
Count tokens in text using the pluggable tokenizer framework (#124). Picks a model-specific tokenizer (tiktoken for GPT/Claude, Google AI REST for Gemini, content-aware heuristic fallback). Angabe des Anbieters · Beleg 5
compress_text
Compress text using Brotli, returned as a base64 string. Intended for AT-REST STORAGE/caching (reduces bytes ~50%).… Angabe des Anbieters · Beleg 5
decompress_text
Decompress base64-encoded Brotli-compressed text. Angabe des Anbieters · Beleg 5
get_cache_stats
Get cache statistics including hit rate, compression ratio, and token savings. Angabe des Anbieters · Beleg 5
clear_cache
Clear all cached data. Use with caution. Angabe des Anbieters · Beleg 5
analyze_optimization
Analyze text and provide recommendations for optimization including compression benefits and token savings. Angabe des Anbieters · Beleg 5
get_session_stats
Get comprehensive statistics from the PowerShell wrapper session tracker including system reminders, tool operations, and total tokens with accurate tiktoken-based counting. Angabe des Anbieters · Beleg 5
optimize_session
Analyzes operations in the current session from the session JSONL log, identifies large text blocks from file-based tools (Read, Write, Edit), compresses them, and stores them in the cache to reduce… Angabe des Anbieters · Beleg 5
analyze_project_tokens
Analyze observed token usage across multiple sessions within a project. Aggregates session logs and identifies top contributors.… Angabe des Anbieters · Beleg 5
context_page
Obtain bounded decision-specific cognition. Returns an explicit empty result when nothing safe applies. Angabe des Anbieters · Beleg 6
context_receipt_verify
Verify that one adapter-delivered context receipt and its correction trace to authenticated external grader evidence. Angabe des Anbieters · Beleg 6
cognition_record
Verify external grader evidence, then propose and activate evidence-backed cognition authored by the active model. Use operation=verify-evidence before recording unfamiliar evidence. Angabe des Anbieters · Beleg 6
checkpoint_handoff
Create or restore a resumable checkpoint and return a takeover receipt. Angabe des Anbieters · Beleg 6
outcome_report
Record correctness-first task outcome and deterministic grader evidence. Angabe des Anbieters · Beleg 6
token_audit
The one thing to run.… Angabe des Anbieters · Beleg 7
cache_audit
Report Anthropic prompt-cache economics for this project: measured cache-read input, cache-write input, hit rate, and warm prefix size read from a Claude Code transcript, plus likely invalidation… Angabe des Anbieters · Beleg 8
expand
Retrieve the full output behind a preview reference, served from the local store rather than by re-running anything.… Angabe des Anbieters · Beleg 9
fleet_audit
Look across every project on this machine at once: which projects hold the cost (ranked with dollar figures), which fixes proven in one project apply to others containing the SAME FILE CONTENTS, and… Angabe des Anbieters · Beleg 10
waste_audit
Report behavioural token waste in this project, ranked by cost per session and compared against the previous week.… Angabe des Anbieters · Beleg 11
install_doctor
Check that this installation actually works.… Angabe des Anbieters · Beleg 12
model_routing
Which model tier this project's work actually goes better on, measured from episode outcomes in the client transcript rather than guessed from task size.… Angabe des Anbieters · Beleg 13
context_delta
Compute a unified-diff delta for a file in a given session so the model only sees changes since the last snapshot. Operations: compute-delta, seed, clear. Angabe des Anbieters · Beleg 14
optimization_storage
Persist and retrieve brotli-compressed optimization results keyed by text hash. Operations: store, retrieve. Angabe des Anbieters · Beleg 15
smart_orm
ORM query optimizer with N+1 detection (83% token reduction) Angabe des Anbieters · Beleg 16
smart_sql
SQL query analyzer with optimization suggestions and execution plan analysis (83% token reduction) Angabe des Anbieters · Beleg 17
wiki_read
Retrieve what this project's knowledge graph already records about the files you are about to work on, so you do not re-derive it.… Angabe des Anbieters · Beleg 18

Voraussetzungen

  • npx · Paketmanager · erforderlich · Beleg 1
  • TOKEN_OPTIMIZER_CACHE_DIR · Umgebungsvariable · optional · Beleg 19
  • Node.js · Laufzeit · erforderlich · Beleg 20
  • npm · Paketmanager · erforderlich · Beleg 20
36 Umgebungsvariablen laut Anbieter
  • TOKEN_OPTIMIZER_PROXY_UPSTREAM · Umgebungsvariable · Beleg 21
  • TOKEN_OPTIMIZER_PROXY_NULL · Umgebungsvariable · Beleg 21
  • TOKEN_OPTIMIZER_PROXY_DROP_THINKING · Umgebungsvariable · Beleg 21
  • TOKEN_OPTIMIZER_PROXY_SUBSTITUTE · Umgebungsvariable · Beleg 21
  • USERPROFILE · Umgebungsvariable · Beleg 22
  • HOME · Umgebungsvariable · Beleg 22
  • TOKEN_OPTIMIZER_DAEMON_IDLE_MS · Umgebungsvariable · Beleg 22
  • TOKEN_OPTIMIZER_UCR_DIR · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_CLIENT · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_AGENT_ID · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_CLIENT_VERSION · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_MODEL · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_MODEL_VERSION · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_CAPABILITY_TIER · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_SESSION_ID · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_PROJECT_ID · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_WORKSPACE_ID · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_BRANCH · Umgebungsvariable · Beleg 6
  • TOKEN_OPTIMIZER_GRADER_SECRET · Umgebungsvariable · Beleg 6
  • PORT · Umgebungsvariable · Beleg 23
  • TOKEN_OPTIMIZER_DASHBOARD_PORT · Umgebungsvariable · Beleg 23
  • TOKEN_OPTIMIZER_SETTINGS · Umgebungsvariable · Beleg 12
  • TOKEN_OPTIMIZER_EPISODE_ID · Umgebungsvariable · Beleg 24
  • TOKEN_OPTIMIZER_TOOL_PROFILE · Umgebungsvariable · Beleg 24
  • TOKEN_OPTIMIZER_EXPERIMENT_ARM · Umgebungsvariable · Beleg 24
  • TOKEN_OPTIMIZER_VERSION · Umgebungsvariable · Beleg 25
  • TOKEN_OPTIMIZER_AUTO_REPAIR · Umgebungsvariable · Beleg 25
  • TOKEN_OPTIMIZER_MODE · Umgebungsvariable · Beleg 25
  • TOKEN_OPTIMIZER_LOG_DIR · Umgebungsvariable · Beleg 26
  • TOKEN_OPTIMIZER_STATE_DIR · Umgebungsvariable · Beleg 26
  • TOKEN_OPTIMIZER_ANALYTICS_DB · Umgebungsvariable · Beleg 27
  • TOKEN_OPTIMIZER_PROVIDER_USAGE_DAYS · Umgebungsvariable · Beleg 27
  • TOKEN_OPTIMIZER_HOOK_PHASE · Umgebungsvariable · Beleg 28
  • ORCAROUTER_API_KEY · Umgebungsvariable · Beleg 20
  • TOKEN_OPTIMIZER_ORCA_MODEL · Umgebungsvariable · Beleg 20
  • TOKEN_OPTIMIZER_LARGE_READ_BYTES · Umgebungsvariable · Beleg 20

Installation

npx -y @ooples/token-optimizer-mcp@7.3.0

Rechte

Löscht und führt Befehle aus

Einordnung aus Werkzeugliste, Paketangaben und Paketinhalt, keine technische Prüfung · So entsteht die Ampel

  • 2 von 28 Werkzeugen können löschen und Befehle ausführen, etwa clear_cache, install_doctor.
  • 4 von 28 Werkzeugen legen Daten an oder ändern sie, etwa optimize_text, optimize_session, cognition_record.
  • Der Anbieter deklariert: lesen und schreiben.

Lass löschende, sendende und ausführende Werkzeuge nur nach Bestätigung je Aktion laufen und verbinde zuerst ein Testkonto.

Zugriffe laut Paketangaben
lesen, schreiben
Authentifizierung
—
Transport
stdio
Technische Prüfung
Ungeprüft
Quellen (28)

Verbundenes