使用说明
🧠 MCP架构概述
该项目使用 MCP(模型上下文协议) 系统,用于跨服务器、客户端和主机代理模块化管理工具、上下文和提示。下面是组件如何交互的完整分解。
📦 关键组件
| 组件 | 描述 |
|---|---|
| MCP服务器 | 存储共享工具、上下文(内存)和提示模板。确实如此 不执行 工具。 |
| MCP客户端 | 生活在Host App中。连接到MCP服务器 拉进来 工具、上下文和提示。 |
| 主机应用程序 | 运行的实际应用程序 代理,处理用户交互,以及 执行工具 通过MCP客户端接收。 |
🔗 架构流程
[ MCP Server ]
├── Tools
├── Contexts
└── Prompts
|
▼
[ MCP Client in Host App ]
└── Pulls tools/context/prompts from server
|
▼
[ Agent in Host App ]
├── Receives user messages
├── Selects tool to run
└── Executes tool using specified transport