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.

ResourceEntry

Pairs a Resource with the reader that serves its content.

ResourceStore

In-memory implementation of MutableResourceStoreInterface.

ResourceTemplateEntry

Pairs a ResourceTemplate with the reader that serves URIs matching it.

ResourceTemplateStore

In-memory implementation of MutableResourceTemplateStoreInterface.

Interfaces
MutableResourceStoreInterface

A resource store whose listing can be changed after build().

MutableResourceTemplateStoreInterface

A resource template store whose listing can be changed after build().

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.