W3C 社区推 WebMCP polyfill,网页可向浏览器 Agent 暴露工具

philnash · x · 2026-11-19

有人为 WebMCP 做了官方 polyfill(w3c-oss/webmcp-polyfill)。WebMCP 是让网页通过 document.modelContext 向浏览器 agent 暴露工具的 API,该 polyfill 遵循 Web Machine Learning Community Group 的草案,类型来自 webmcp-types,且无运行时 JavaScript 依赖。项目已在 npm 以 @w3c/webmcp-polyfill 发布,Apache-2.0 协议,含 WPT 测试与 Roadmap,目前约 31 star。

原文链接 →

「编程与Agent」频道最新

更多「编程与Agent」频道 AI 资讯 →