Builds the initialize result object including protocol version, capabilities, and server info.
initialize