v0.2.0
What's Changed
Fixed
- Sampling requests (
sampling/createMessage) no longer reject atemperaturevalue outside0.0to2.0. The MCP schema sets no bound on the field, so the previous range rejected spec-valid input. - Sampling requests (
sampling/createMessage) no longer reject a negativemaxTokens. The MCP schema sets no minimum on the field. - A request envelope with a malformed
id(wrong type or empty string) now returns a-32600Invalid Request error instead of-32602Invalid Params, matching JSON-RPC 2.0. - Shutdown now drains handler coroutines spawned while an earlier batch of in-flight work is still being awaited, instead of returning before they complete.
Removed
HandlerRegistry::methods(), an unused accessor returning the registered method names.
Full Changelog: https://github.com/NexusPHP/mcp-sdk/compare/v0.1.0...v0.2.0