AI编码
x.com ·
@cursor_ai
Cursor 支持自定义工具携带 MCP 注解,模型可在调用前区分查询与删除
Cursor 官方账号发布更新:自定义工具现可携带 readOnlyHint、destructiveHint 等 MCP 注解,使模型在调用工具前能够区分查询类操作与删除类操作。该信息为官方一手发布,对 agent 工具调用的安全性有实际意义,但帖子未说明默认行为、兼容范围或注解误判时的处理方式。
AI推荐理由 Cursor 官方发布:自定义工具现可携带 readOnlyHint、destructiveHint 等 MCP 注解,使模型在调用前区分查询与删除操作。对 agent 工具调用的安全性与可控性有实际意义,属官方一手信息;但内容简短,未说明默认行为、兼容范围或误判处理。
64
浏览 1,291
点赞 22
评论 3
转发 0
正文
Custom tools can now carry MCP annotations like readOnlyHint and destructiveHint, so the model can tell a lookup from a delete before it calls one.
