
warpdev/mcp-hub-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
warpdev/mcp-hub-mcp - кандидат на сервер MCP, импортированный из https://github.com/warpdev/mcp-hub-mcp.
Обзор
warpdev/mcp-hub-mcp - кандидат на сервер MCP, импортированный из https://github.com/warpdev/mcp-hub-mcp.
Обзор (машинный перевод)
Концентрационный сервер, который подключается и управляет другими серверами MCP (Model Context Protocol).
Обзор
Этот проект создает сервер концентратора MCP, который подключается и управляет несколькими серверами MCP (Model Context Protocol) через один интерфейс. Это помогает предотвратить чрезмерное использование контекста и загрязнение от редко используемых MCP (например, Atlassian MCP, Playwright MCP), позволяя подключать их только при необходимости. Это уменьшает ошибки ИИ и улучшает производительность, сохраняя активный набор инструментов целенаправленным и управляемым.
Ключевые особенности
Автоматическое подключение к другим MCP-серверам через конфигурационный файл Перечислите доступные инструменты на подключенных серверах Инструменты вызова на подключенных серверах и результаты возврата
Конфигурация
Добавьте это к своему [0]:
Использование npx
##Установка и запуск
Требования
Node.js 18.0.0 или выше
- npm, пряжу или pnpm
###Установка
###Строим
###Беги
Режим разработки
Конфигурационный файл
Сервер MCP-Hub-MCP использует файл конфигурации формата Claude Desktop для автоматического подключения к другим серверам MCP. Вы можете указать файл конфигурации следующими способами:
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
MCP-Hub-MCP Server
A hub server that connects to and manages other MCP (Model Context Protocol) servers.
Overview
This project builds an MCP hub server that connects to and manages multiple MCP (Model Context Protocol) servers through a single interface. It helps prevent excessive context usage and pollution from infrequently used MCPs (e.g., Atlassian MCP, Playwright MCP) by allowing you to connect them only when needed. This reduces AI mistakes and improves performance by keeping the active tool set focused and manageable.
Key Features
- Automatic connection to other MCP servers via configuration file
- List available tools on connected servers
- Call tools on connected servers and return results
Configuration
Add this to your mcp.json:
Using npx
{
"mcpServers": {
"other-tools": {
"command": "npx",
"args": [
"-y",
"mcp-hub-mcp",
"--config-path",
"/Users/username/mcp.json"
]
}
}
}
Installation and Running
Requirements
- Node.js 18.0.0 or higher
- npm, yarn, or pnpm
Installation
# Clone repository
git clone
cd mcp-hub-mcp
# Install dependencies
npm install
# or
yarn install
# or
pnpm install
Build
npm run build
# or
yarn build
# or
pnpm build
Run
npm start
# or
yarn start
# or
pnpm start
Development Mode
npm run dev
# or
yarn dev
# or
pnpm dev
Configuration File
The MCP-Hub-MCP server uses a Claude Desktop format configuration file to automatically connect to other MCP servers. You can specify the configuration file in the following ways:
- Environment variable: Set the
MCP_CONFIG_PATHenvironment variable to the configuration file path - Command line argument: Use the
--config-pathoption to specify the configuration file path - Default path: Use
mcp-config.jsonfile in the current directory
Configuration file format:
{
"mcpServers": {
"serverName1": {
"command": "command",
"args": ["arg1", "arg2", ...],
"env": { "ENV_VAR1": "value1", ... }
},
"serverName2": {
"command": "anotherCommand",
"args": ["arg1", "arg2", ...]
}
}
}
Example:
{
"mcpServers": {
"filesystem": {
Установка
npx -y mcp-hub-mcp --config-path /Users/username/mcp.jsonКонфигурация
{
"mcpServers": {
"other-tools": {
"command": "npx",
"args": [
"-y",
"mcp-hub-mcp",
"--config-path",
"/Users/username/mcp.json"
]
}
}
}