v0.5.0
What's Changed
Added
- An online API reference for the public
Nexus\Mcp\API, published to GitHub Pages on every push to1.x.
Fixed
#[InputSchema]'sdefinitionis not a full schema override. Onlytype,$schema,propertiesandrequiredreach the advertisedinputSchema, which the annotation now documents.- A discovered tool returning an array the adapter cannot map throws
UnsupportedReturnValueExceptionnaming the handler method, instead of a bareExpectationFailedException. - A JSON-RPC error response whose
error.datais a non-object JSON value no longer fails to decode. Previously the client discarded it without rejecting the correlated request, leavingawait()unresolved. - A peer-supplied
jsonrpcvalue carrying control characters is escaped in the version-mismatch error message, stopping a peer from forging newlines in plain-text sinks. - A failed transport send during
Client::sendRequest()no longer leaves the correlated request registered, which slowly grew the correlation map.
Full Changelog: v0.4.0...v0.5.0