MO

milkymap/omnimcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

31 stars 4 forks 품질 74 트렌드 0MIT

MCP 생태계를위한 Semantic 라우터 - 지능형 컨텍스트 관리와 여러 서버에 걸쳐 도구를 발견하고 실행합니다.

개요

Context bloat 없이 여러 MCP 서버를 통해 도구 및 실행 MCP 도구 정의는 토큰을 빠르게 소비합니다. 일반적인 설정: 대화가 시작되기 전에입니다. 더 많은 서버를 추가하고 실제 상황과 비교할 수 있습니다. 도구 정의가 50-100K 토큰을 소비 할 때 실제 대화, 문서 및 소싱을위한 제한된 공간으로 남아 있습니다. 모델은 작업 대신 공구 스키마에주의를 기울입니다. 50 개 이상의 유사한 도구 (신호-send-user vs notification-send-channel), 모델은 잘못된 도구와 복권 매개 변수를 선택합니다. 도구 선택 정확도는 도구로 증가합니다. inference에서 주문한 로딩 도구는 스마트하지만 신속한 캐시를 유효하게합니다. 모든 새로운 도구는 중간 대화를 추가하는 것은 전체 컨텍스트를 처리하는 것을 의미합니다. "optimization"은 성능 세금이됩니다. 단일 파일 읽기는 50K 토큰을 반환 할 수 있습니다. 이미지는 1K+ 토큰 base64-encoded입니다. 이 대화 역사에서 쌓아, 이전의 컨텍스트를 밀어.

개요(AI 번역)

** MCP 생태계의 세만 라우터 **

  • context bloat*없이 여러 MCP 서버에서 발견 및 실행 도구


문제

MCP 도구 정의는 토큰을 빠르게 소비합니다. 일반적인 설정:

서버 도구 토큰
깃허브 35 ~ 26K
파일시스템 8 ~5K
데이터베이스 12 ~8K

그게 ** 60K + 토큰 ** 대화가 시작되기 전에. 더 많은 서버를 추가하고 실제 상황과 비교할 수 있습니다.

왜 이 문제

Context bloat kills 성능. 도구 정의가 50-100K 토큰을 소비 할 때 실제 대화, 문서 및 소싱을위한 제한된 공간으로 남아 있습니다. 모델은 작업 대신 공구 스키마에주의를 기울입니다.

** 더 많은 도구 = 더 많은 복권.** 50+ 유사한 도구로 ([T0]] vs notification-send-channel), 모델은 잘못된 도구와 복조 매개 변수를 선택합니다. 도구 선택 정확도는 도구로 증가합니다.

Dynamic 도구 로딩 브레이크 캐싱. inference에서 주문한 로딩 도구는 스마트하지만 신속한 캐시를 유효하게합니다. 모든 새로운 도구는 중간 대화를 추가하는 것은 전체 컨텍스트를 처리하는 것을 의미합니다.

이 페이지는 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 } } }