Function

handle

Handle an incoming MCP request and write the response to the output stream. The handler receives ownership of the request resource, allowing it to either process the request or forward it to the next handler in the chain.

handle: func(request: request, output: output-stream);