Metadata-Version: 2.4
Name: aduib-mcp-router
Version: 1.1.14
Summary: A Router service for MCP service discovery and routing.
Author-email: chaorenex1 <24537608z@gmail.com>
License: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: bcrypt>=4.3.0
Requires-Dist: chromadb>=1.0.5
Requires-Dist: nacos-mcp-wrapper-python
Requires-Dist: nacos-sdk-python<=2.0.9
Requires-Dist: pydantic-settings>=2.9.1
Requires-Dist: pydantic>=2.11.3
Requires-Dist: pytz
Requires-Dist: pyyaml
Description-Content-Type: text/markdown

# Aduib MCP Router
## 项目简介

Aduib MCP Router 是一个多MCP聚合路由器，支持多种MCP协议，旨在简化MCP服务器的管理和使用。

## 使用
1. MCP配置
   ```json
   {
    "mcpServers": {
        "aduib-mcp-router":{
            "command": "uvx",
            "args": ["aduib-mcp-router"],
            "env": {
              "MCP_CONFIG_PATH": "./config.json"
            }
        }
      }
   }
   ```
2. json配置
    ```json
    {
        "time": {
            "command": "uvx",
            "args": [
                "mcp-server-time"
            ]
        },
        "aduib_server": {
            "type": "sse",
            "url": "http://10.0.0.169:5002",
            "headers": {
                "Authorization": "Bearer $2b$12$WB2YoxB5CQtPbqN35UDso.of2n7BmDvvQpxmIUdKe2VHO.MAY1u26"
            }
        }
    }
   ```

## Playground
Playground 是一个内置的可视化调试界面，用于快速体验和验证多 MCP Server 的聚合效果。通过单页交互式工具面板，可以：

- 浏览当前路由器已加载的所有远程工具；
- 查看工具的名称、描述等基础信息；
- 在界面上直接触发调用，快速验证路由链路是否可用；
- 观察返回数据，方便调试和演示。

![Playground](docs/playground.png)

## 开发
1. 安装环境
    ```bash
    pip install uv
    # Or on macOS
    brew install uv
    # Or on Windows
    choco install uv
    ```
2. 安装依赖
   ```bash
   uv sync --dev
    ```
