Function
handle-request
Handle an MCP request from the server
This is called when the server sends a request to the client, such as:
- Sampling requests (asking the client to generate completions)
- Root list requests (asking for the client's root URIs)
https://spec.modelcontextprotocol.io/specification/basic/requests
handle-request: func(id: request-id, request: server-request, server: server-context) -> result<client-response, error-code>;