Posts tagged with #MCP

2 posts found

Resouce Context 管理

之前的 Drive MCP 设计中提到了 Resource,这里记录一下在实际使用 Resource 过程中遇到的问题:在用户 Attach File 后,我们使用前面说的 MCP Client 获取 Resource,然后把上下文 attach 到 system prompt 中: ```ts private async resolveResourceUris( uris:...

Drive MCP 设计

在封装 Drive Agent 的 Tool 调用时想到了使用 MCP,因为 MCP 是统一的协议、可以让我们的 Tool 被内置 Agent 外的东西通过 MCP Client 访问。比如实现完成后在 Copilot 访问 Drive 内文件: <Image src={image_2026_03_05_09_11_42} alt="alt text" /> <Image...