Metadata-Version: 2.4
Name: aduib-mcp-router
Version: 1.0.5
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.1
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_URL": "./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"
            }
        }
    }
   ```
## 开发
1. 安装环境
    ```bash
    pip install uv
    # Or on macOS
    brew install uv
    # Or on Windows
    choco install uv
    ```
2. 安装依赖
   ```bash
   uv sync --dev
    ```
  
3. 初始化数据库
   ```bash
    uv pip install alembic
    alembic -c ./alembic/alembic.ini revision --autogenerate -m "init table"
    alembic -c ./alembic/alembic.ini upgrade head
   ```
