MO

milkymap/omnimcp

Developer tools

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

31 stars 4 forks 品質 74 トレンド 0MIT

MCPエコシステム用のセマンティックルータ - インテリジェントなコンテキスト管理で複数のサーバー間でツールを発見し、実行します.

概要

コンテキストなしで複数のMCPサーバー間でツールを見つけて実行する MCP ツール定義はトークンを高速に消費します。 典型的なセットアップ: 会話が始まる前のことです。 より多くのサーバーを追加し、実際のコンテキストと競合しています。 ツール定義が50-100Kトークンを消費すると、実際の会話、文書、推論のための限られたスペースで残されます。 このモデルは、タスクの代わりにツールスキーマに注意を払います。 50以上の同様のツール(通知送信者と通知送信チャネルのような)で、モデルは誤ったツールを選択し、パラメータを幻覚します。 ツールの選択精度は、ツールセットが成長するにつれて低下します。 推論中にツールをオンデマンドにロードするのはスマートですが、プロンプトキャッシュを無効化します。 すべての新しいツールは、中途の会話がコンテキスト全体を再処理することを意味します。 「最適化」は、パフォーマンス税となります。 単一ファイル読み込みは50Kトークンを返すことができます。 画像は1K+トークンベース64エンコードです。 これらは、会話履歴を積み上げ、以前の文脈を押し出します.

概要(AI 翻訳)

MCPエコシステム向けSemanticルータ

複数のMCPサーバーを介したツールをコンテクストなしで発見し、実行します

お問い合わせ

お問い合わせ

問題

MCP ツール定義はトークンを高速に消費します。 典型的なセットアップ:

| サーバー | ツール | トークン | お問い合わせ | GitHub | 35 | 〜26K | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Slack | 11 | 〜21K | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ファイルシステム | 8 | 5K | | データベース | 12 | 〜8K |

会話が始まる前に**60K+トークンです。 より多くのサーバーを追加し、実際のコンテキストと競合しています。

##なぜこの問題なのか

Context bloat は性能を殺します。 ツール定義が50-100Kトークンを消費すると、実際の会話、文書、推論のための限られたスペースで残されます。 このモデルは、タスクの代わりにツールスキーマに注意を払います。

より多くのツール = より多くの幻覚. 50以上の同様のツール([[T0]のような)と[notification-send-channel])で、モデルは間違ったツールを選び、パラメータを幻覚します。 ツールの選択精度は、ツールセットが成長するにつれて低下します。

ダイナミックツールのロードはキャッシュを破ります。 推論中にツールをオンデマンドにロードするのはスマートですが、プロンプトキャッシュを無効化します。 すべての新しいツールは、中途の会話がコンテキスト全体を再処理することを意味します.

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

README

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



The Problem

MCP tool definitions consume tokens fast. A typical setup:

Server Tools Tokens
GitHub 35 ~26K
Slack 11 ~21K
Filesystem 8 ~5K
Database 12 ~8K

That’s 60K+ tokens before the conversation starts. Add more servers and you’re competing with your actual context.

Why this matters

Context bloat kills performance. When tool definitions consume 50-100K tokens, you’re left with limited space for actual conversation, documents, and reasoning. The model spends attention on tool schemas instead of your task.

More tools = more hallucinations. With 50+ similar tools (like notification-send-user vs notification-send-channel), models pick wrong tools and hallucinate parameters. Tool selection accuracy drops as the toolset grows.

Dynamic tool loading breaks caching. Loading tools on-demand during inference seems smart, but it invalidates prompt caches. Every new tool added mid-conversation means reprocessing the entire context. Your “optimization” becomes a performance tax.

Tool results bloat context too. A single file read can return 50K tokens. An image is 1K+ tokens base64-encoded. These pile up in conversation history, pushing out earlier context.

The Solution

OmniMCP exposes a single semantic_router tool as the only entry point to your entire MCP ecosystem. The LLM never sees individual tool definitions—just one unified interface.

Traditional: 58 tools → 55K tokens in tool definitions
OmniMCP:      1 tool   → ~500 tokens (semantic_router)

How it works:

  1. Semantic search → Find relevant tools by intent, not name. Tools are pre-indexed with embeddings, searched at runtime, returned as text results (not tool definitions)
  2. Lazy server loading → Servers start only when needed, shutdown when done
  3. Progressive schema loading → Full JSON schema fetched only before execution, returned as text in conversation
  4. Content offloading → Large results chunked, images described, stored for retrieval

Key insight: Tool schemas appear in conversation text, not in tool definitions. This means:

  • Prompt caching stays intact (tool definition never changes)
  • Only relevant schemas enter context (via search results)
  • No hallucination from similar tool names (model sees 3-5 tools, not 50+)

From ~60K tokens to ~3K. Access to everything, cost of almost nothing.

GitHub で README 全文を見る

インストール

npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/directory
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"], "env": {}, "timeout": 30.0 } } }