initialize

Initiates the MCP lifecycle by sending an initialize request with the specified client info and capabilities, and then sending an initialized notification once the server responds. Returns an InitializeResult containing information about the server.

Return

InitializeResult containing information about the server.

Throws

if initialization fails.