Skip to content

v0.2.0

Choose a tag to compare

@paulbalandan paulbalandan released this 26 Jul 19:53
v0.2.0
a8a7032

What's Changed

Fixed

  • Sampling requests (sampling/createMessage) no longer reject a temperature value outside 0.0 to 2.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 negative maxTokens. The MCP schema sets no minimum on the field.
  • A request envelope with a malformed id (wrong type or empty string) now returns a -32600 Invalid Request error instead of -32602 Invalid 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