PromptRegistry

Thread-safe collection of McpPrompts keyed by name, with change listeners like ToolRegistry.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addChangeListener(listener: () -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun register(prompt: McpPrompt)

Register prompt, replacing any prompt with the same name.

Link copied to clipboard
fun registerAll(promptList: List<McpPrompt>)
Link copied to clipboard
fun removeChangeListener(listener: () -> Unit)
Link copied to clipboard
fun unregister(name: String)
Link copied to clipboard
fun visiblePrompts(visibleTools: Set<String>): List<McpPrompt>

Prompts whose McpPrompt.requiredTools are all in visibleTools.