removePrompt method
Remove a prompt from the server
Implementation
@override
void removePrompt(String name) {
if (!_prompts.containsKey(name)) {
throw McpError('Prompt with name "$name" does not exist');
}
_prompts.remove(name);
_promptHandlers.remove(name);
// Notify clients about prompt changes if connected and supported
if (isConnected && capabilities.hasPrompts && capabilities.promptsListChanged) {
_broadcastNotification('notifications/prompts/list_changed', {});
}
// Emit change event
_promptsChangedController.add(null);
}