Sourcegraph 分享 MCP server 用户体验设计经验
Sourcegraph 把 MCP server 的响应当 UI 来调优,修了三个坑:过期等待误判完成、旧状态掩盖失败发布、拒绝表单被当答案。做 MCP server 的开发者都该看看,比读文档有用。
Sourcegraph 团队分享了他们在 Agentic Batch Changes 中发现的 MCP server 用户体验问题:agent 完全依赖 MCP server 返回的响应来决定下一步动作。团队修复了三个具体缺陷:过期的等待状态会被读取为"已完成"、陈旧的"无错误"提示掩盖了失败的 PR 发布、被拒绝的表单被当作有效答案处理。
这些问题的核心在于 MCP server 的响应设计决定了 agent 的行为质量。如果 server 返回过期或模糊的状态信息,agent 会基于错误前提继续执行,例如在任务实际失败时停止等待或跳过错误处理。
对 MCP server 开发者来说,这类经验说明需要把返回给 agent 的响应当作"用户界面"来设计:状态要新鲜、错误要显式暴露、用户拒绝的输入不能被解释为确认。
Your MCP server has a user experience. The agent picks its next move from your responses.
What we fixed in Agentic Batch Changes: - an expired wait read as "done" - a stale "no errors" hiding failed PR publishes - a declined form treated as an answer
https://t.co/xd4wloBOJV
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include MCP and tools, Sourcegraph, agents, MCP server.
Source attribution: curated from Sourcegraph (@sourcegraph).