McpServer.setCompletionRequestHandler

Set the handler for completion/complete, receiving a parsed, typed CompleteRequest (the ref, the argument name/value, and any context.arguments) rather than raw Json. Declaring it advertises the completions capability. Use request.isPrompt / request.isResource to route to the appropriate per-target completer.

class McpServer
@safe
void
setCompletionRequestHandler