You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Share the tools-mode predicate across all sampling senders
The resolver path, the deprecated session.create_message, and the peer
sample API each hand-rolled the tools-mode test; the latter two still
keyed the answer model on tools alone, so a tool_choice-only request
was gated as tools-mode but its array-capable answer failed validation.
One wants_sampling_tools predicate in mcp.server.validation now drives
the capability check and the result model everywhere reachable, with
the overloads updated to match and tests on each surface.
0 commit comments