Namespace Nexus\Mcp\Server\Resource

Classes
ClosureResourceReader

Adapts a closure to the ResourceReaderInterface contract.

ClosureTemplatedResourceReader

Adapts a closure to the TemplatedResourceReaderInterface contract.

CompositeResourceStore

Chains a primary ResourceStoreInterface (exact-URI matches) with a fallback ResourceTemplateStoreInterface (URI-template matches). read() tries the primary first. On ResourceNotFoundException it falls through to the template store, only re-raising the not-found when neither side matches. list() delegates to the primary unchanged.

ReflectedResourceReader

Adapts an attribute-discovered handler method to the ResourceReaderInterface contract.

ReflectedTemplatedResourceReader

Adapts an attribute-discovered handler method to the TemplatedResourceReaderInterface contract.

ResourceStore

In-memory implementation of ResourceStoreInterface.

ResourceTemplateStore

In-memory implementation of ResourceTemplateStoreInterface.

Interfaces
ResourceReaderInterface

Reads a single resource when invoked via resources/read.

ResourceStoreInterface

Read surface that the built-in resources/* request handlers depend on.

ResourceTemplateStoreInterface

Read surface that the built-in resources/templates/* request handlers depend on.

TemplatedResourceReaderInterface

Reads a single resource whose URI matched a registered ResourceTemplate. Receives the matched variable bindings extracted from the URI by the URI-template matcher.