Token Optimizer MCP
Context-window optimization: caching, compression & smart file tools that cut tokens 60-90%.
Connector by ooples · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/ooples-token-optimizer-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: monitoring-observability
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
Runs code on install
Its package runs an install script (such as npm postinstall or setup.py code) as soon as you install it, before any tool is called. Read the script first.
- Tools
- 49 read · 20 write · 2 delete · 47 not yet classified
- Secrets
- None asked for
- Install scripts
- Runs code on install
- Runs as
- Node.js package
Tools by what they do 118
Read from the source code; the running server may list different tools.
Read 49 · Look things up without changing anything.
analyze_optimizationanalyze_project_tokensanomaly_explainercache_auditcontext_deltacontext_receipt_verifycount_tokensexpandfleet_auditget_action_analyticsget_cache_statsget_cached
Show 37 more tools
get_hook_analyticsget_mcp_server_analyticsget_optimization_reportget_session_statsheadroom_retrievehealth_monitorhealth-monitorintelligent-assistantlist_fileslist_workspacemonitoring_integrationnatural-language-queryoptimize_sessionReadread_filesentiment_analysissmart_ast_grepsmart_branchsmart_complexitysmart_config_readsmart_dependenciessmart_diffsmart_exportssmart_globsmart_grepsmart_logsmart_package_jsonsmart_processessmart_readsmart_statussmart_symbolssmart_tsconfigsmart_workflowtoken_auditwaste_auditwiki_querywiki_read
Write 20 · Create, change, send or run things.
checkpoint_handoffcognition_recordcompress_textcustom_widgetdata_visualizerdecompress_textinstall_doctorknowledge_graphoptimize_textoutcome_reportsmart_buildsmart_edit
Show 8 more tools
smart_importssmart_installsmart_mergesmart_testsmart_typechecksmart_writewiki_writewrite_result
Delete 2 · Delete, drop, revoke or wipe things.
Bashclear_cache
Not yet classified 47 · We could not tell from the name and description.
alert_managercache_analyticscache_benchmarkcache_compressioncache_invalidationcache_optimizercache_partitioncache_replicationcache_warmupcontext_pageexport_analyticslog_dashboard
Show 35 more tools
metric_collectormodel_routingoptimization_storagepattern-recognitionperformance-trackerpredictive_cachepredictive-analyticsrecommendation-enginesmart_api_fetchsmart_cachesmart_cache_apismart_cronsmart_databasesmart_dockersmart_envsmart_graphqlsmart_lintsmart_logssmart_migrationsmart_networksmart_ormsmart_prettysmart_processsmart_refactorsmart_restsmart_schemasmart_securitysmart_servicesmart_sqlsmart_system_metricssmart_typescriptsmart_usersmart_websocketsmart-dashboardsmart-summarization
Secrets and settings it asks for
Other settings (environment variables or headers).
TOKEN_OPTIMIZER_CACHE_DIR
Files it touches
- Any path the agent passes to its tools
Tools (118)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
alert_managerComprehensive alerting system with multi-channel notifications, intelligent routing, and an unmeasured design target of 89% token reduction through aggressive caching and history aggregation
analyze_optimizationAnalyze text and provide recommendations for optimization including compression benefits and token savings.
analyze_project_tokensAnalyze observed token usage across multiple sessions within a project. Aggregates session logs and identifies top contributors. Cost is Not priced unless the caller supplies an effective input-token rate; any resulting value is a cost equivalent, not an invoice.
anomaly_explainerExplain anomalies with root cause analysis, hypothesis generation, and remediation suggestions
BashExecute a shell command and return stdout, stderr, and exit status.
cache_analyticsComprehensive cache analytics with an unmeasured design target of 88%+ token reduction. Real-time dashboards, trend analysis, alerting, heatmaps, bottleneck detection, and cost optimization.
cache_auditReport 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 sources. Cost equivalents are labeled Anthropic-specific, excluded from universal savings, and are not invoices.
cache_benchmarkCache Performance Benchmarking with 89% token reduction through comprehensive testing and analysis. Features: - Strategy comparison (LRU vs LFU vs FIFO vs TTL vs size vs hybrid) - Load testing with configurable concurrency and ramp-up - Latency profiling with percentiles (p50, p90, p95, p99, p99.9) - Throughput testing (operations per second) - Comprehensive reports in markdown, HTML, JSON, PDF - Workload simulation (read-heavy, write-heavy, mixed, realistic) Operations: - run-benchmark: Execute complete benchmark suite - compare: Compare multiple cache configurations - load-test: Stress tes…
cache_compressionAdvanced compression strategies for cache optimization with an unmeasured design target of 89%+ token reduction. Supports 6 algorithms (gzip, brotli, lz4, zstd, snappy, custom), adaptive selection, dictionary-based compression, and delta compression for time-series data.
cache_invalidationComprehensive cache invalidation with an unmeasured design target of 88%+ token reduction, dependency tracking, pattern matching, scheduled invalidation, and distributed coordination
cache_optimizerAdvanced cache optimization with an unmeasured design target of 89%+ token reduction. Analyzes performance, benchmarks strategies, provides ML-based recommendations, detects bottlenecks, and performs cost-benefit analysis.
cache_partitionAdvanced cache partitioning and sharding with an unmeasured design target of 87%+ token reduction through consistent hashing, automatic rebalancing, and partition isolation
cache_replicationDistributed cache replication with an unmeasured design target of 88%+ token reduction. Supports primary-replica and multi-primary modes, strong/eventual consistency, automatic conflict resolution, failover, incremental sync, and health monitoring.
cache_warmupIntelligent cache pre-warming with an unmeasured design target of 87%+ token reduction, featuring schedule-based warming, pattern analysis, dependency resolution, and progressive warming strategies
checkpoint_handoffCreate or restore a resumable checkpoint and return a takeover receipt.
Show 103 more tools
clear_cacheClear all cached data. Use with caution.
cognition_recordVerify external grader evidence, then propose and activate evidence-backed cognition authored by the active model. Use operation=verify-evidence before recording unfamiliar evidence.
compress_textCompress text using Brotli, returned as a base64 string. Intended for AT-REST STORAGE/caching (reduces bytes ~50%). NOTE: base64 tokenizes poorly, so the output usually has MORE LLM tokens than the input — do NOT feed the result into a model context expecting savings. The response includes originalTokens/compressedTokens and a warning when the output would increase tokens.
context_deltaCompute 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.
context_pageObtain bounded decision-specific cognition. Returns an explicit empty result when nothing safe applies.
context_receipt_verifyVerify that one adapter-delivered context receipt and its correction trace to authenticated external grader evidence.
count_tokensCount 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).
custom_widgetCreate and manage custom dashboard widgets with an unmeasured design target of 88% token reduction through template caching and configuration compression
data_visualizerCreate and manage interactive data visualizations with an unmeasured design target of 92% token reduction through SVG/Canvas optimization and configuration caching
decompress_textDecompress base64-encoded Brotli-compressed text.
expandRetrieve the full output behind a preview reference, served from the local store rather than by re-running anything. Pass `section` to say which named part of the preview you needed -- that is what teaches the next preview to keep it. Pass `claim` and `anchor` to record what you learned, so the same expansion never happens again.
export_analyticsExport all analytics data in JSON or CSV format. Supports filtering by date range, hook phase, tool name, and MCP server. Useful for external analysis, reporting, and data integration.
fleet_auditLook 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 how enforcing clients compare with directive ones as a natural experiment (reported with its confound). Reads transcripts and graphs locally, uploads nothing, and names every directory it opened. Use dryRun=true to see what it would read before it reads anything; mode="explicit" with `projects` to scan only what you name.
get_action_analyticsGet detailed token usage analytics broken down by tool/action (Read, Write, Grep, Bash, count_tokens, etc.). Shows which tools consume the most tokens and identifies optimization opportunities for specific operations.
get_cache_statsGet cache statistics including hit rate, compression ratio, and token savings.
get_cachedRetrieve previously cached and optimized text. Returns the original text if found in cache.
get_hook_analyticsGet detailed token usage analytics broken down by hook phase (PreToolUse, PostToolUse, SessionStart, PreCompact, UserPromptSubmit). Shows which hook phases consume the most tokens and where optimization efforts should be focused.
get_mcp_server_analyticsGet detailed token usage analytics broken down by MCP server (token-optimizer, filesystem, github, etc.). Shows which MCP servers are contributing the most to token usage and helps identify cross-server optimization opportunities.
get_optimization_reportGet a provenance-gated token report. Verified savings require a materialized MCP payload before and after optimization; historical and tool-reported estimates are excluded. Direct API-price equivalents use each exact captured model and route; ambiguous operations remain unpriced.
get_session_statsGet comprehensive statistics from the PowerShell wrapper session tracker including system reminders, tool operations, and total tokens with accurate tiktoken-based counting.
headroom_retrieveRetrieve the original, uncompressed content for a compression marker. Call this when you need the full data behind a <<ccr:...>> marker.
health_monitorMonitor system and application health with an unmeasured design target of 91% token reduction through health state compression and metric aggregation
health-monitorMonitor health status of systems, services, and applications with dependency tracking. Supports 8 operations: check, register-check, update-check, delete-check, get-status, get-history, configure-dependencies, get-impact. Achieves 87% token reduction through status caching and dependency graph compression.
install_doctorCheck that this installation actually works. Runs the real hook binaries with synthetic payloads and asserts a large read is refused and a small one is not, that session-start emits the policy, and that the graph directory is writable and private -- rather than checking that config files exist, which can pass while the plugin saves nothing. Every failure names its fix. Pass uninstallPlan=true to see exactly what a removal would delete and what it would refuse to touch.
intelligent-assistantAnswers questions from a document corpus the caller supplies, quoting sentences with the id of the document they came from. Ranks by an idf cosine, reports the question terms the corpus does not contain, and refuses rather than composing an answer it cannot quote.
knowledge_graphBuild a directed graph of entities and relations you supply, then query it by pattern, find paths between nodes, detect communities, rank nodes, infer relations, visualize it, merge two graphs, or export it. The graph is held in the cache between calls, so a query does not have to resend the entities. This is a general-purpose graph over data you provide; it does not read your codebase.
list_filesList every file path in the repository.
list_workspaceList files in the isolated evaluation workspace. Returns relative paths and byte sizes.
log_dashboardInteractive log analysis dashboard with filtering, searching, pattern detection, and an unmeasured design target of 90% token reduction through intelligent caching and compression
metric_collectorComprehensive metrics collection and aggregation with multi-source support, time-series compression, and an unmeasured design target of 88% token reduction through delta encoding and intelligent caching
model_routingWhich model tier this project's work actually goes better on, measured from episode outcomes in the client transcript rather than guessed from task size. Reports expected cost per tier including retries, and prices BOTH mistakes: what an overpowered model wastes and what an underpowered one costs in retries. Pass `shape` (multi-file-change, single-file-change, investigation, build-or-test, conversation) and `currentModel` for a decision note that also states what switching would cost in discarded prompt cache.
monitoring_integrationExternal monitoring platform integration with an unmeasured design target of 87% token reduction through data compression and intelligent caching
natural-language-queryParse, translate, optimize and validate queries written in a published restricted grammar, and describe a result set against the query that produced it
optimization_storagePersist and retrieve brotli-compressed optimization results keyed by text hash. Operations: store, retrieve.
optimize_sessionAnalyzes 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 future token usage. Returns a summary of the optimization.
optimize_textCompress and cache text to reduce token usage. Returns compressed version and saves to cache for future use.
outcome_reportRecord correctness-first task outcome and deterministic grader evidence.
pattern-recognitionFrequency, clustering, correlation, sequence and trend analysis over event and metric arrays you supply
performance-trackerTracks and analyzes performance metrics (CPU, memory, response times, throughput) with advanced statistical capabilities. Supports 8 operations: track, query, analyze-trends, forecast, compare, detect-regressions, get-baseline, generate-report. Achieves 89%+ token reduction through intelligent caching and data aggregation.
predictive_cacheML-based predictive caching with an unmeasured design target of 91%+ token reduction using ARIMA, exponential smoothing, LSTM, and collaborative filtering
predictive-analyticsLeast-squares fitting, forecasting, anomaly detection and prediction scoring over numeric series you supply
ReadRead a file by absolute path, optionally selecting a line range.
read_fileRead one file from the repository.
recommendation-engineItem-based collaborative filtering, workflow transition analysis, proportional allocation and config trial comparison over records you supply
sentiment_analysisScore the sentiment of text you supply -- logs, review comments, issue threads, survey answers -- and derive emotions, topics, a feedback classification, a trend over timestamped samples, or a comparison between two sets. Scoring is lexicon-based and runs locally; results are cached so a second pass over the same text is free.
smart_api_fetchExecute HTTP requests with intelligent caching and retry logic. Features: - Automatic retry with exponential backoff (1s, 2s, 4s, 8s) - Response caching with TTL-based invalidation (default: 5 minutes) - Request deduplication for in-flight requests - Circuit breaker pattern (opens after 5 consecutive failures) - ETag/Cache-Control header support - 83% average token reduction through intelligent output formatting Token Reduction Strategy: - Cached responses: 95% reduction (summary only) - Error responses: 90% reduction (error details only) - Retried requests: 85% reduction (success summary wi…
smart_ast_grepPerform structural code search with an unmeasured design target of 83% token reduction through AST indexing and caching
smart_branchList and manage git branches with an unmeasured design target of 60% token reduction through structured JSON output and smart filtering
smart_buildRun TypeScript build with intelligent caching, diff-based change detection, and token-optimized output
smart_cacheAdvanced multi-tier cache with an unmeasured design target of 90%+ token reduction, 6 eviction strategies, stampede prevention, and automatic tier management
smart_cache_apiAPI Response Caching with 83% token reduction through intelligent cache management. Features: - Multiple caching strategies (TTL, ETag, Event-based, LRU, Size-based) - Intelligent cache key generation with query normalization - Pattern-based and tag-based invalidation - Stale-while-revalidate support - Cache hit rate analysis and recommendations - Cache warming and preloading Actions: - get: Retrieve cached API response - set: Cache an API response - invalidate: Remove cached entries (pattern/tag/manual) - analyze: Get cache performance metrics - warm: Pre-cache specific endpoints Token Red…
smart_complexityAnalyze code complexity metrics including cyclomatic, cognitive, Halstead, and maintainability index. Measured token reduction vs reading the file: 31-73% first read, 31-73% repeated (bench/tools, 3 fixtures).
smart_config_readRead and parse configuration files (JSON, YAML, TOML) with schema-aware caching and intelligent diffing. Measured token reduction vs reading the file: 18-30% first read, 84-99.3% repeated (bench/tools, 2 fixtures) -- a first read pays little, because it returns the parsed config as well as what is wrong with it: 30% on a minimal package.json and 18% on a 5,198-token one; the saving is on the repeat, where an unchanged file is answered with a diff rather than its contents.
smart_cronIntelligent scheduled task management with smart caching (unmeasured design target: 85%+ token reduction). Manage cron jobs (Linux/macOS) and Windows Task Scheduler with validation, history tracking, and next run predictions.
smart_databaseDatabase query optimizer with connection pooling, circuit breaking, and an unmeasured design target of 83% token reduction. Supports query execution, EXPLAIN analysis, performance optimization, health monitoring, slow query detection, and batch operations.
smart_dependenciesAnalyze project dependencies through graph caching and incremental updates. Measured token reduction vs reading the file: 97-99% first read, 97-99% repeated (bench/tools, 2 fixtures) -- it resolves the imports of the files it is pointed at, so a scope matching no source file is refused rather than answered with an empty graph.
smart_diffGet git diffs with an unmeasured design target of 85% token reduction through diff-only output and smart filtering
smart_dockerDocker operations with build/run/stop/logs support, image layer analysis, and optimization suggestions
smart_editEdit files with an unmeasured design target of 90% token reduction through line-based operations and diff-only output
smart_envSmart environment variable analyzer with security checking and suggestions. Measured token reduction vs reading the file: -27% to 37% first read, -27% to 37% repeated (bench/tools, 4 fixtures) -- it names every variable without returning any value, which is where the saving comes from; the loss is the other mode, because `includeLocations` adds each line and the length of each value back and costs 32-48% more.
smart_exportsAnalyze TypeScript/JavaScript export statements with intelligent caching. Tracks exports, detects unused exports, and provides optimization suggestions. Measured token reduction vs reading the file: 70-98% first read, 70-98% repeated (bench/tools, 3 fixtures).
smart_globFind files efficientlyread-onlySearch files with glob patterns and an unmeasured design target of 75% token reduction through path-only results and smart filtering
smart_graphqlGraphQL query optimizer with complexity analysis and caching (unmeasured design target: 83% token reduction)
smart_grepSearch file contents efficientlyread-onlySearch file contents with an unmeasured design target of 80% token reduction through match-only output and smart filtering
smart_importsAnalyze TypeScript/JavaScript import statements with intelligent caching. Detects unused imports, missing imports, and provides optimization suggestions. Measured token reduction vs reading the file: 92-97% first read, 92-97% repeated (bench/tools, 3 fixtures).
smart_installPackage installation with dependency analysis, conflict detection, and smart caching for npm/yarn/pnpm
smart_lintRun ESLint with intelligent caching, incremental analysis, and auto-fix suggestions
smart_logGet git commit history with an unmeasured design target of 75% token reduction through structured JSON output and smart filtering
smart_logsSystem log aggregation and analysis with multi-source support, pattern filtering, error detection, and insights
smart_mergeManage git merges with an unmeasured design target of 80% token reduction through structured status and conflict management
smart_migrationDatabase migration tracker with status monitoring and an unmeasured design target of 83% token reduction. Supports listing migrations, checking status, viewing history, rollback operations, and migration generation.
smart_networkNetwork diagnostics and monitoring with connectivity testing, port scanning, DNS resolution, and anomaly detection
smart_ormORM query optimizer with N+1 detection (unmeasured design target: 83% token reduction)
smart_package_jsonAnalyze package.json with dependency resolution, version conflict detection, and security scanning. Measured token reduction vs reading the file: -2% to 91% first read, 8-92% repeated (bench/tools, 2 fixtures) -- the loss is on a minimal package.json, the saving on a real one.
smart_prettySyntax highlighting and code formatting. Supports 50+ languages, ANSI/HTML output, multiple themes, and Prettier integration. Measured token reduction vs reading the file: -2% to 1% first read, -2% to 1% repeated (bench/tools, 3 fixtures) -- both operations hand the code itself back, so there is nothing here to reduce: two fixtures cost 1-2% more than the file, and the third comes back four tokens shorter because Prettier collapsed something. The earlier 94% was an elided payload counted as economy.
smart_processIntelligent process management with smart caching (unmeasured design target: 88%+ token reduction). Start, stop, monitor processes with resource tracking and cross-platform support. TRUST BOUNDARY: the "start" operation launches an arbitrary executable of the caller's choosing, with caller-supplied arguments, working directory and environment. It runs in argv mode with no shell, so there is no command injection, but granting this tool is equivalent to granting local command execution as the user running the server. Operators who do not want that should expose smart_processes (read-only monitor…
smart_processesMonitor and analyze system processes with anomaly detection and resource tracking
smart_readRead a file efficientlyread-onlyRead files with intelligent caching, diff-based updates, and syntax-aware optimization. Measured token reduction vs reading the file: -2% to 0% first read, 99-99.9% repeated on an unchanged file (bench/tools, 3 fixtures) -- a first read returns the file plus a one-field header, so it still costs a little more than reading the file; the saving is on the repeat.
smart_refactorProvides intelligent refactoring suggestions with code examples and impact analysis. Measured token reduction vs reading the file: 2-85% first read, 2-85% repeated (bench/tools, 3 fixtures) -- the floor is the smallest fixture, where 19 findings and a code example for each very nearly outweigh the file they are about: 1,631 tokens of answer against 1,676 of file.
smart_restREST API analyzer with endpoint discovery and health scoring (unmeasured design target: 83% token reduction)
smart_schemaDatabase schema analyzer with intelligent caching and an unmeasured design target of 83% token reduction. Supports PostgreSQL, MySQL, and SQLite. Provides schema introspection, relationship analysis, index recommendations, and schema diff.
smart_securitySecurity vulnerability scanner with pattern detection and intelligent caching. Measured token reduction vs reading the file: 23-99% first read, 22-99% repeated (bench/tools, 4 fixtures) -- the three clean fixtures cost a flat 84 tokens each, because a scan that finds nothing says so in the same words whatever it was pointed at; the fourth is the floor, where six findings and a remediation for each are reported against a 597-token file.
smart_serviceIntelligent service management with smart caching (unmeasured design target: 86%+ token reduction). Manage systemd, Windows Services, and Docker containers with health monitoring and dependency tracking.
smart_sqlSQL query analyzer with optimization suggestions and execution plan analysis (unmeasured design target: 83% token reduction)
smart_statusGet git status with an unmeasured design target of 70% token reduction through status-only output and smart filtering
smart_symbolsExtract and analyze TypeScript/JavaScript symbols with scope, type, and reference information. Measured token reduction vs reading the file: 78-95% first read, 78-95% repeated (bench/tools, 3 fixtures).
smart_system_metricsSystem resource monitoring with CPU, memory, disk usage tracking, anomaly detection, and performance recommendations
smart_testRun the project's tests (Jest, Vitest, Mocha, AVA or node --test) with intelligent caching, coverage tracking, and incremental test execution
smart_tsconfigParse and analyze TypeScript configuration. Resolves extends chains, detects issues, and caches results for 7 days. Measured token reduction vs reading the file: 40-92% first read, 40-92% repeated (bench/tools, 3 fixtures) -- it answers what the resolved config is and what is wrong with it, and sends the merge only where there was one: a config that extends nothing is answered with that fact and its suggestions, because the caller already holds the file.
smart_typecheckRun TypeScript type checking with intelligent caching and categorized error reporting
smart_typescriptIncremental TypeScript compilation with dependency tracking and intelligent caching. Measured token reduction vs reading the file: 92-93% first read, 92-93% repeated (bench/tools, 1 fixture).
smart_userIntelligent user and permission management with smart caching (unmeasured design target: 86%+ token reduction). Manage users, groups, permissions, ACLs, and perform security audits across Windows, Linux, and macOS.
smart_websocketWebSocket connection manager with message tracking (unmeasured design target: 83% token reduction)
smart_workflowParse a CI/CD workflow file and answer questions about it without reading the file into the conversation: GitHub Actions, GitLab CI, CircleCI and Azure Pipelines. Returns jobs, triggers, the dependency graph, syntax validation, hardcoded-secret and unsafe-action findings, and caching or parallelization suggestions. Parses are cached against the file hash for 24 hours.
smart_writeWrite files with an unmeasured design target of 85% token reduction through verification, atomic operations, and change tracking
smart-dashboardUnified dashboard management with widget management and multi-source data integration. Supports 8 operations: check, register-check, update-check, delete-check, get-status, get-history, configure-dependencies, get-impact. Achieves 87% token reduction through status caching and dependency graph compression.
smart-summarizationExtractive summarisation, digests, period comparison and categorisation over text you supply. Selects sentences from the input; never generates prose.
token_auditThe one thing to run. A single ranked queue of what is costing the most in this project -- waste detectors, prompt-cache invalidation attributed to a file and line, and model routing -- each priced per session and per month, each naming how to act on it. Reports what already-applied fixes actually saved, whether habits improved since the advice, and its own token cost; findings worth less than their printing cost are withheld unless full=true. Pass decline="<id>" to stop being told about something.
waste_auditReport behavioural token waste in this project, ranked by cost per session and compared against the previous week. Detectors are a shipped floor plus patterns derived from this project's own history, each carrying what it has actually saved. Use action="apply" to put the fixes we own into force (reversible and measured), or action="revert" with an id to undo one. Changes to your own files are only ever proposed as a diff.
wiki_queryRead project knowledgeread-onlyRead the project's knowledge graph: fetch a finding by key, search findings by terms, inspect a node and its neighbours, or get the graph's audit, token balance and overall shape. Use it when the session index mentions a finding you want in full, or to find out what the graph holds at all. NOT for anchored retrieval: to ask what is known about a particular file or symbol, call wiki_read, which does exactly that and is the tool the enforcement layer points at.
wiki_readRead project knowledgeread-onlyRetrieve what this project's knowledge graph already records about the files you are about to work on, so you do not re-derive it. Call it BEFORE reading a file you have not seen: it returns prior conclusions anchored to that file — dead ends and why, decisions and what was rejected, commands that worked — plus lessons carried from other repositories on this machine. Subagents especially: you never receive the session-start briefing, so this is the only way to reach the graph. Costs nothing and sends nothing off the machine.
wiki_writeRecord project knowledgeRecord a durable finding in this project's knowledge graph so a later session retrieves it instead of re-deriving it. Use it the moment you conclude something that cost real work and is not obvious from the code: a dead end and why, a decision and its rejected alternatives, a command that finally worked, or how a subsystem fits together. Anchor it to the files it is about — the anchor is what lets the claim be invalidated when that code changes, and what makes it surface automatically when the file is next touched. Costs nothing and sends nothing off the machine.
write_resultWrite the final result.json. This is the only allowed workspace mutation.
Compare and alternatives
Featured in
Signals
- Stars
- 561
- Forks
- 71
- Open issues
- 1
- Weekly downloads
- 1,323
- Last commit
- Oct 23, 2026 (5 days ago)
- Last release
- Oct 26, 2026 (2 days ago)
- Last package publish
- Oct 21, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.ooples/token-optimizer-mcp- Version
- 7.7.1
- Auth
- No auth
- Packages
- npm @ooples/token-optimizer-mcp
- License
- MIT
- Repository
- github.com/ooples/token-optimizer-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 26, 2026
More from ooples
Cite this page
Token Optimizer MCP. Agent Mart. https://agentmart.dev/connectors/ooples-token-optimizer-mcp (last updated 2026-10-26)