register

Registers server lifecycle hooks that auto-start/stop the MCP endpoint.