Handler
Table of Contents
Namespaces
- Notification
- Request
Interfaces
- ElementHandlerInterface
- Marker contract shared by all explicit element handler interfaces (tool,
resource, resource template, prompt). Used as a single type hint where any
element handler is acceptable.
- PromptHandlerInterface
- Contract for explicit prompt handlers paired with an `Mcp\Schema\Prompt` definition
via `Mcp\Server\Builder::add()`.
- ResourceHandlerInterface
- Contract for explicit resource handlers paired with an `Mcp\Schema\ResourceDefinition`
definition via `Mcp\Server\Builder::add()`.
- ResourceTemplateHandlerInterface
- Contract for explicit resource-template handlers paired with an
`Mcp\Schema\ResourceTemplate` definition via `Mcp\Server\Builder::add()`.
- ToolHandlerInterface
- Contract for explicit tool handlers paired with an `Mcp\Schema\Tool` definition
via `Mcp\Server\Builder::add()`.