removePrompt

fun removePrompt(prompt: KFunction<*>): Boolean

Dynamically removes a previously added prompt by its @McpPrompt-annotated function reference.

Return

true if the prompt was removed, false if it was not found.

Parameters

prompt

The @McpPrompt-annotated function reference that was previously added.