withPrompt

fun withPrompt(promptFunction: KFunction<*>): Server.Builder

Registers a prompt by referencing its @McpPrompt-annotated function.