Number of registered resources.
Number of registered templates.
Clear all resources and templates.
Clear all resources.
Clear all templates.
Get all registered static resources.
Get a template by name.
Get all registered templates.
Check if a resource exists.
Check if provider has any resources or templates.
Check if a template exists.
Register a static resource, replacing any existing. Warns on URI conflict.
Register a template, replacing any existing.
Register a static resource. Throws if name exists. Warns on URI conflict.
Register a resource template. Throws if name exists.
Unregister a resource by name.
Unregister a template by name.
StaticcreateCreates an isolated ResourceRegistry (no shared global state).
Used for testing.
Composite registry for MCP resources and templates.
Uses two internal BaseRegistry instances to eliminate code duplication while maintaining separate namespaces for resources and templates.
Implements ResourceProvider for direct use with McpServerBuilder.
Example