agent
by 1mcp-app·★ 438·综合分 52
1MCP 是统一的 MCP 运行时,将多个 MCP 服务器聚合为一体,提供 CLI 模式进行渐进式工具发现。
概述
1MCP 解决了 MCP 配置蔓延问题,提供统一的运行时,可在单个端点后聚合多个 MCP 服务器。它提供多种操作模式,包括渐进式发现的 CLI 模式、最大兼容性的 stdio 代理以及原生 MCP 客户端的直接 HTTP 连接。该实现支持启动时加载的静态服务器和从客户端上下文解析的模板服务器,具有异步加载、指令聚合和预设过滤等功能。这使得在不同 AI 代理之间管理复杂的 MCP 设置同时保持一致的运行时体验变得理想。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你需要管理多个 MCP 服务器并保持单一配置同时减少每个代理的初始工具表面时,选择 1MCP。
什么时候不要选它
如果你需要最少的开销或只构建包含一两个服务器的简单 MCP 设置,避免使用 1MCP,因为它增加了可能不必要的复杂性层。
此 server 暴露的工具
从 README 抽取出 6 个工具instructionsGet current runtime instructions and recommended workflow
inspectDiscover servers or tools in the runtime
runExecute a specific tool with arguments
query-docsQuery documentation from a library
proxyStart a stdio proxy for maximum client compatibility
mcpManage MCP servers and connections
说明:Tool names extracted from CLI examples and documentation. This appears to be a meta-server that aggregates other MCP servers rather than exposing its own tools directly.
可对比工具
安装
安装
- 全局安装 1MCP:
npm install -g @1mcp/agent- 添加上游 MCP 服务器:
1mcp mcp add context7 -- npx -y @upstash/context7-mcp- 启动运行时:
1mcp serve对于 Claude Desktop,添加到 claude_desktop_config.json:
{
"mcpServers": {
"1mcp": {
"url": "http://127.0.0.1:3050/mcp?app=claude-code"
}
}
}FAQ
- CLI 模式和 stdio 代理模式有什么区别?
- CLI 模式专为代理式会话设计,使用 'instructions -> inspect -> run' 进行渐进式发现。Stdio 代理模式提供更广泛的客户端兼容性,同时通过 .1mcprc 配置保持项目上下文。
- 1MCP 如何处理身份验证?
- 1MCP 在运行时级别支持身份验证,具有集中式身份验证配置,适用于所有聚合的 MCP 服务器。有关设置详情,请参阅身份验证文档。
agent 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。