Connect to the OmniRoute MCP server (110 tools, 3 transports: SSE/stdio/HTTP). Covers routing, cache, compression, memory, skills, providers, and audit tools ac
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-omni-mcp-b1f3065f5410 ,按照其中的说明把「omni-mcp」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Connect to the OmniRoute MCP server (110 tools, 3 transports: SSE/stdio/HTTP). Covers routing, cache, compression, memory, skills, providers, and audit tools across 33 permission scopes.
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
GET mcp › audit
curl https://localhost:20128/api/mcp/audit \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET mcp › audit › stats
curl https://localhost:20128/api/mcp/audit/stats \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET mcp › sse
curl https://localhost:20128/api/mcp/sse \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST mcp › sse
curl -X POST https://localhost:20128/api/mcp/sse \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET mcp › status
curl https://localhost:20128/api/mcp/status \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET mcp › stream
curl https://localhost:20128/api/mcp/stream \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST mcp › stream
curl -X POST https://localhost:20128/api/mcp/stream \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
DELETE mcp › stream
curl -X DELETE https://localhost:20128/api/mcp/stream \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET mcp › tools
curl https://localhost:20128/api/mcp/tools \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
Requires OMNIROUTE_URL and OMNIROUTE_KEY. See entry-point SKILL for setup.
GET $OMNIROUTE_URL/api/mcp/ssePOST $OMNIROUTE_URL/api/mcp/streamAdd to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"omniroute": {
"command": "npx",
"args": ["-y", "omniroute", "--mcp"],
"env": { "OMNIROUTE_KEY": "sk-..." }
}
}
}
{
"mcp": {
"servers": {
"omniroute": {
"url": "http://localhost:20128/api/mcp/sse",
"headers": { "Authorization": "Bearer sk-..." }
}
}
}
}
The table below shows representative core tools; the server's discovery response is authoritative and includes all 110 tools.
| Scope | Tools |
|---|---|
| health | omniroute_get_health |
| combos | omniroute_list_combos, omniroute_get_combo_metrics, omniroute_switch_combo |
| routing | omniroute_simulate_route, omniroute_best_combo_for_task, omniroute_explain_route |
| providers | omniroute_get_provider_metrics, omniroute_check_quota, omniroute_route_request |
| budget | omniroute_set_budget_guard, omniroute_set_routing_strategy, omniroute_set_resilience_profile |
| testing | omniroute_test_combo |
| memory | memory_add, memory_search, memory_delete |
| skills | skill_invoke, skill_list, skill_describe, skill_register |
| cache | omniroute_cache_stats, omniroute_cache_flush |
| admin | omniroute_db_health_check, omniroute_sync_pricing, omniroute_get_session_snapshot |
Full list: GET $OMNIROUTE_URL/api/mcp/tools
Tools are grouped into 33 scopes (chat-only, memory-readonly, full-admin, etc.).
Pass scope name as --scope arg or via X-Omniroute-Scope header.
Full docs: https://github.com/diegosouzapw/OmniRoute/blob/main/docs/frameworks/MCP-SERVER.md