Negotiate the modern protocol and handle structured output, failures and client teardown.
Connect @modelcontextprotocol/client 2.x to MCP servers, inspect negotiated protocol and advertised tools, handle structured and error results, and close client resources reliably.