MCP Server Framework - v1.0.0
    Preparing search index...

    Function resetAllRegistries

    resetAllRegistries is re-exported from the registry module. Import it directly from the main package:

    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.

      Use cases:

      • Hot-reload during development
      • Server restart / lifecycle management
      • Isolated testing scenarios

      Returns void

      import { resetAllRegistries } from 'mcp-server-framework';

      // Before re-registering tools in a hot-reload scenario
      resetAllRegistries();