使用说明
MCP经理
MCP Manager是一个仪表板,用于跨多个AI代理发现、安装和管理模型上下文协议服务器。
| 亮模式 | 暗模式 |
|---|---|
特性
- 从注册表浏览和搜索MCP服务器
- 一键式服务器安装和管理
- 多代理支持(Claude Desktop、GitHub Copilot、OpenClaw等)
- 所有服务器和代理的统一仪表板
- 通过复选框选择进行批量代理管理
- 基于插件的可扩展性架构
- Docker支持容器化部署
- 全面的单元测试覆盖率
截图
Browse & Install Servers
| 亮 | 暗 |
|---|---|
Detected AI Agents
| 亮 | 暗 |
|---|---|
Server Health Dashboard
| 亮 | 暗 |
|---|---|
Conflict Detection
| 亮 | 暗 |
|---|---|
Installed Servers
| 亮 | 暗 |
|---|---|
建筑
MCP经理遵循清洁架构,明确分离关注点:
项目结构
McpManager/
├── src/
│ ├── McpManager.Core/ # Domain models and interfaces
│ ├── McpManager.Application/ # Business logic and services
│ ├── McpManager.Infrastructure/ # Agent connectors and registries
│ ├── McpManager.Web/ # Blazor Server web application
│ └── McpManager.Desktop/ # Desktop app using Photino.Blazor
├── tests/
│ └── McpManager.Tests/ # Unit and integration tests
└── docs/ # Documentation
关键设计模式
- 依赖倒置:所有依赖关系都通过接口向内流动
- 单一责任:每个服务处理一个问题
- 打开/关闭:可通过以下方式扩展
IAgentConnector接口 - DRY(不要重复自己):基类和服务中的共享逻辑
快速开始
先决条件
- .NET 10.0 SDK (从源头建设)
- 安装了一个或多个AI代理(Claude Desktop、GitHub Copilot等)
安装选项
Windows SmartScreen警告
Windows在运行桌面应用程序时可能会显示安全警告,因为它没有代码签名。代码签名证书的费用为300-500美元/年,这对于这个开源项目来说是不切实际的。
要运行应用程序,请执行以下操作:
- 点击“更多信息”
- 单击“无论如何运行”
为什么它是安全的:
- 100%开源-自己审核代码
- 由GitHub Actions构建-可重复构建
- 发布说明中的SHA256哈希值
- 无遥测或网络呼叫
看 SmartScreen警告指南 了解详情。
选项1:桌面应用程序(推荐)
桌面应用程序作为独立应用程序运行,不需要浏览器!
窗户:
- 下载最新版
mcpmanager-desktop-win-x64.zip从 发布 - 提取存档
- 跑
McpManager.Desktop.exe - 应用程序在自己的窗口中打开!
Linux:
- 下载最新版
mcpmanager-desktop-linux-x64.tar.gz从 发布 - 提取物:
tar -xzf mcpmanager-desktop-linux-x64.tar.gz - 使可执行文件:
chmod +x McpManager.Desktop - 运行:
./McpManager.Desktop - 应用程序在自己的窗口中打开!
选项2:服务器托管
如果您更喜欢打开浏览器的传统服务器模式:
窗户:
- 下载最新版
mcpmanager-server-win-x64.zip从 发布 - 提取存档
- 跑
McpManager.Web.exe - 引导到http://localhost:5000
Linux:
- 下载最新版
mcpmanager-server-linux-x64.tar.gz从 发布 - 提取物:
tar -xzf mcpmanager-server-linux-x64.tar.gz - 使可执行文件:
chmod +x McpManager.Web - 运行:
./McpManager.Web - 引导到http://localhost:5000
选项3:Docker
# Pull and run the latest image
docker pull ghcr.io/jerrettdavis/mcpmanager:latest
docker run -p 8080:8080 ghcr.io/jerrettdavis/mcpmanager:latest
# Navigate to http://localhost:8080
选项4:从源代码构建
git clone https://github.com/JerrettDavis/McpManager.git
cd McpManager
dotnet restore
dotnet run --project src/McpManager.Web
# Navigate to https://localhost:5001
用法
仪表盘
主仪表板显示已安装的服务器、检测到的代理和活动安装。
浏览服务器
导航到浏览服务器,从注册表中搜索和安装MCP服务器。
管理代理
- 选择一个代理以查看已配置的服务器
- 使用复选框启用/禁用服务器
- 使用批量操作在多个代理中添加/删除服务器
- 单击“删除”从代理中卸载服务器
测试
dotnet test
dotnet test /p:CollectCoverage=true # with coverage
支持的代理
- 克劳德桌面
- GitHub副本(VS代码)
- 定制代理通过
IAgentConnector接口
发展
添加新代理连接器
- 创建一个新类来实现
IAgentConnector:
public class MyAgentConnector : IAgentConnector
{
public AgentType AgentType => AgentType.Other;
public Task<bool> IsAgentInstalledAsync() { /* ... */ }
public Task<string> GetConfigurationPathAsync() { /* ... */ }
// Implement other interface methods
}
- 注册于
Program.cs:
builder.Services.AddSingleton<IAgentConnector, MyAgentConnector>();
添加新注册表
实施 IServerRegistry 要连接到npm、GitHub或自定义注册表:
public class NpmRegistry : IServerRegistry
{
public string Name => "npm MCP Registry";
public Task<IEnumerable<ServerSearchResult>> SearchAsync(string query) { /* ... */ }
// Implement other interface methods
}
生产大楼
连编可执行程序
# Windows
dotnet publish -c Release -r win-x64 --self-contained
# macOS
dotnet publish -c Release -r osx-x64 --self-contained
# Linux
dotnet publish -c Release -r linux-x64 --self-contained
构建Docker镜像
docker build -t mcp-manager:latest .
docker tag mcp-manager:latest your-registry/mcp-manager:latest
docker push your-registry/mcp-manager:latest
贡献
欢迎捐款。分叉存储库,创建功能分支,并提交拉取请求。
许可证
MIT许可证-请参阅 许可证 文件。
致谢
使用ExpressRoute和Bootstrap构建。实施 模型上下文协议.