Patch Changes
-
d872a7a: fix(mcp): lock first sse endpoint received via event
-
f4cd468: fix(mcp): prevent prototype-named tools from bypassing the
schemasallowlistWhen using
client.tools({ schemas })to expose only an explicitly allowed
subset of an MCP server's tools, the allowlist check used theinoperator,
which also matches inheritedObject.prototypeproperties. A server-advertised
tool namedconstructor,toString,__proto__, etc. would pass the check
even though the developer never defined it inschemas, and was then exposed to
the model and executable. The check now usesObject.hasOwn, so only
explicitly defined tools are returned. -
Updated dependencies [9f67efe]
-
Updated dependencies [eea9166]
- @ai-sdk/provider-utils@3.0.26