Overview
Methods
getResources()
Get all static resources (not templates).| Parameter | Type | Default | Description |
|---|---|---|---|
includeHidden | boolean | false | Include hidden resources |
getResourceTemplates()
Get all resource templates.findByUri()
Find a resource by exact URI match.matchTemplateByUri()
Match a URI against template resources.findResourceForUri()
Find resource by URI (exact match or template).findByName()
Find a resource by its base name.findByQualifiedName()
Find a resource by its fully qualified name.getExported()
Lookup a resource by its exported (resolved) name.exportResolvedNames()
Produce unique, conflict-aware exported names.getInlineResources()
Get resources defined inline (local only).listAllInstances()
List all resource instances (locals + adopted).listByOwner()
List resources by owner path.registerResourceInstance()
Register a pre-constructed ResourceEntry directly.registerDynamicResource()
Register a resource or template at runtime.subscribe()
Subscribe to resource change events.getCapabilities()
Get MCP capabilities for resources.hasAny()
Check if any resources exist.adoptFromChild()
Adopt resources from a child registry.Change Events
Indexes
| Index | Key | Description |
|---|---|---|
byQualifiedId | qualifiedId | Unique identifier lookup |
byName | name | Base name lookup |
byUri | uri | Static resource URI lookup |
byUriTemplate | uriTemplate | Template URI lookup |
byOwner | ownerPath | All resources by owner |
Static vs Template Resources
Static Resources
Have a fixed
uri property. Found via findByUri().Template Resources
Have a
uriTemplate with parameters. Matched via matchTemplateByUri().