resetAllRegistries is re-exported from the registry module. Import it directly from the main package:
resetAllRegistries
import { resetAllRegistries } from 'mcp-server-framework'; Copy
import { resetAllRegistries } from 'mcp-server-framework';
Reset all global registries.
Clears all registered tools, resources, resource templates, and prompts from the global singleton registries. After calling this, all define*() calls must be re-executed to repopulate the registries.
define*()
Use cases:
import { resetAllRegistries } from 'mcp-server-framework';// Before re-registering tools in a hot-reload scenarioresetAllRegistries(); Copy
import { resetAllRegistries } from 'mcp-server-framework';// Before re-registering tools in a hot-reload scenarioresetAllRegistries();
resetAllRegistriesis re-exported from the registry module. Import it directly from the main package: