OT

ooples/token-optimizer-mcp

Analytics & monitoring

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

563 stars 73 forks 品質 88 トレンド 41MIT

ooples/token-optimizer-mcp は、https://github.com/ooples/token-optimizer-mcp. からインポートされたMCPサーバー候補です。

概要

ooples/token-optimizer-mcp は、https://github.com/ooples/token-optimizer-mcp. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

トークンオプティマイザーMCP

バイト数ではなく請求書を最適化する圧縮 — そしてベンチマークを発送してくれているので、確認できます。

最適化ツール、ライブグラフの置換、すべてのエージェント、そしてグラフ自身のコストのためのローカル台帳を1つ。


HeadRoomと比べてどうか

プロバイダーはプロンプトプレフィックスをキャッシュします:キャッシュされたトークンは0.1xで再読み込み、書き換えられます 請求額は1.25倍です。ほとんどのコンプレッサーは削除したバイトを最適化し、それを無視します 乗算器。これは請求書を最適化する。

実際の実装、つまり自らの設備で測定したものです。 再実装であって、我々の設備ではない:彼らのハーネスはペイロードを圧縮する。 それを捨てると、相手のリゾルバーが自分たちのマーカーを償い、私たちのリゾルバーは 同一バイトです。その列は9つの構成の中で最も優れています。 捕獲は一列ずつ保持します。

私たちの腕のうち2本はテーブルの中にいて、それぞれ異なる質問に答えています。ours ブロックエンジンでブロックを動かす場所がなく、これがMCPのツールと フックは実行されます:削除したものはすべて圧縮で除去され、何もありません リクエストを離れます。ours, proxy はClaude Codeセッションが実行するプロキシです

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Token Optimizer MCP

Compression that optimises your bill, not your byte count — and ships the benchmark so you can check it.

One local ledger for optimizer tools, live-graph substitutions, every agent, and the graph’s own cost.


How it compares to Alternative A

Providers cache the prompt prefix: cached tokens re-read at 0.1x, rewritten ones bill at 1.25x. Most compressors optimise bytes removed and ignore that multiplier. This one optimises the bill.

Measured against their real implementation, on their own fixtures. Not a reimplementation and not our fixtures: their harness compresses the payload, dumps it, their resolver redeems their own markers, and ours is handed the identical bytes. Their column is the best of the nine configurations that capture holds, row by row.

Two of our arms are in the table, and they answer different questions. ours is the block engine with nowhere to move a block, which is how the MCP tools and the hooks run: everything it removes, it removes by compressing, and nothing leaves the request. ours, proxy is the proxy a Claude Code session runs

GitHub で README 全文を見る

インストール

npx -y @ooples/token-optimizer-mcp@latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "token-optimizer": { "type": "local", "command": "npx", "args": ["-y", "@ooples/token-optimizer-mcp@latest"], "tools": ["*"] } } }