mcp4k
Toggle table of contents
0.4.8
common
Target filter
common
Switch theme
Search in API
Skip to content
mcp4k
mcp4k-runtime
/
sh.ondr.mcp4k.runtime
/
Server
/
Builder
/
withPrompt
with
Prompt
fun
withPrompt
(
promptFunction
:
KFunction
<
*
>
)
:
Server.Builder
Registers a prompt by referencing its @McpPrompt-annotated function.