withTool

fun withTool(toolFunction: KFunction<*>): Server.Builder

Registers a tool by referencing its @McpTool-annotated function.