registerModule

Register every @tool / @prompt / @resource / @resourceTemplate annotated **free function** in module mod on server, mirroring registerHandlers but targeting module-scope symbols rather than the methods of an instance (FastMCP-style module decoration).

Free functions cannot receive a RequestContext via this, so a context must be taken as an explicit parameter (exactly as opt-in methods do). Non-function members and functions without a recognized UDA are skipped.

@safe @safe
void
registerModule
(
alias mod
)