Plug entrypoint for the MCP Streamable HTTP transport.
The plug is configured by MCPKit.Router and expects:
- a host definition module implementing
MCPKit.Definition - a persistent session store returned by that definition
- a compile-time registry of declared tools for the mounted scope
Current runtime scope is intentionally narrow:
initializeGETsession stream over SSEnotifications/initializedpingcompletion/completeprompts/listprompts/getresources/listresources/readresources/templates/listtools/listtools/callnotifications/cancelledDELETEsession termination
The plug now also uses request-time policy checks for tools, prompts, and
resources via the host's configured MCPKit.Policy module.
Summary
Functions
Callback implementation for Plug.call/2.
Callback implementation for Plug.init/1.