AI SDK 新增 fingerprintTools() 和 detectToolDrift() 函数,监测 MCP 工具静默重写

AI SDK now provides the functions 𝚏𝚒𝚗𝚐𝚎𝚛𝚙𝚛𝚒𝚗𝚝𝚃𝚘𝚘𝚕𝚜() and ...

精选理由

AI SDK 新出的两个函数可以帮你提前发现 MCP 工具被偷偷修改,避免模型被误导,适合所有用 MCP 的开发者。

AI 摘要

AI SDK 发布了两个新函数 fingerprintTools() 和 detectToolDrift(),用于检测 MCP 工具在到达模型前是否被静默重写。fingerprintTools() 为每个工具生成唯一指纹,detectToolDrift() 则实时比对当前指纹与基准,发现差异即告警。该功能帮助开发者避免工具定义被篡改导致的模型行为异常。

原文 · AI SDK

AI SDK now provides the functions 𝚏𝚒𝚗𝚐𝚎𝚛𝚙𝚛𝚒𝚗𝚝𝚃𝚘𝚘𝚕𝚜() and ...

AI SDK now provides the functions 𝚏𝚒𝚗𝚐𝚎𝚛𝚙𝚛𝚒𝚗𝚝𝚃𝚘𝚘𝚕𝚜() and 𝚍𝚎𝚝𝚎𝚌𝚝𝚃𝚘𝚘𝚕𝙳𝚛𝚒𝚏𝚝() to help catch silent MCP tool rewrites before they reach the model. 💬 1 🔄 0 ❤️ 9 👀 553 📊 3 ⚡