Function

handle-response

Handle a response from the server to a previous client request

When the client makes a request and the server responds, this function is called. Handlers should match responses to their pending requests and resume operations.

https://spec.modelcontextprotocol.io/specification/basic/requests

handle-response: func(id: option​<request-id>, response: result​<server-response, error-code>);