Namespace Nexus\Mcp\Core\Handler

Classes
AbstractContext

Context passed to a request handler. Carries metadata about the incoming request and exposes domain helpers for emitting out-of-band messages.

HandlerRegistry

Method-name to handler dispatch table, generic over the handler interface.

Interfaces
NotificationHandlerInterface

Handles a single inbound JSON-RPC notification. TMethod binds the literal returned by static::getMethod() on the matching notification class so the registry can store handlers heterogeneously. It does not narrow handle()'s parameter, which stays at the wide envelope type.

RequestHandlerInterface

Handles a single inbound JSON-RPC request and returns the typed result. TMethod binds the literal returned by static::getMethod() on the matching request class so the registry can store handlers heterogeneously. It does not narrow handle()'s parameter, which stays at the wide envelope type.

SenderInterface

Outbound message pump used by AbstractContext helpers.

Namespaces
Nexus\Mcp\Core\Handler\Request