Skip to content

v0.3.0

Choose a tag to compare

@paulbalandan paulbalandan released this 26 Jul 19:53
v0.3.0
e888395

What's Changed

Added

  • Client::getServerCapabilities() returns the ServerCapabilities negotiated during the handshake, or null before it completes.
  • The client now gates typed requests on the server's advertised capabilities: calling a method whose capability the server did not advertise (e.g. tools/list without a tools capability) throws ServerCapabilityNotSupportedException before the request reaches the transport. ping is never gated.

Fixed

  • Closing a StdioClientTransport whose subprocess is still running no longer fatals on PHP builds without the pcntl extension (such as Windows). The transport now terminates the subprocess via Process::kill() instead of the SIGKILL constant.

Changed

  • StdioClientTransport now prunes the spawned subprocess environment by default instead of inheriting the full parent environment. The env constructor argument changed from array $env = [] to ?array $env = null: null (default) passes a safe allowlist (PATH, HOME, TERM, …) drawn from the parent and skips exported shell-function values. An empty array still inherits the full parent environment. A non-empty array is passed verbatim.

Full Changelog: https://github.com/NexusPHP/mcp-sdk/compare/v0.2.0...v0.3.0