Function
handle
Handle an incoming MCP object and write the response to the output-stream.
The response may consist of zero or more notifications and server-sent requests before concluding with the result.
The handler receives ownership of the context and output-stream, allowing it to either process the object or forward it to the next handler in the chain.
handle: func(ctx: context, out: output-stream);