@@ -169,7 +169,7 @@ export type ClientOptions = ProtocolOptions & {
169169 /**
170170 * Configure automatic refresh behavior for tool list changed notifications
171171 *
172- * @example
172+ * @example
173173 * ```ts
174174 * {
175175 * autoRefresh: true,
@@ -191,7 +191,7 @@ export type ClientOptions = ProtocolOptions & {
191191 * autoRefresh: false,
192192 * onToolListChanged: (err, tools) => {
193193 * // err is always null when autoRefresh is false
194- *
194+ *
195195 * // Manually refresh the tool list
196196 * const result = await this.listTools();
197197 * console.log('Tool list changed:', result.tools);
@@ -810,7 +810,7 @@ export class Client<
810810 const toolListChangedOptions : ToolListChangedOptions = {
811811 autoRefresh : ! ! options . autoRefresh ,
812812 debounceMs : options . debounceMs ?? 300 ,
813- onToolListChanged : options . onToolListChanged ,
813+ onToolListChanged : options . onToolListChanged
814814 } ;
815815 this . _toolListChangedOptions = toolListChangedOptions ;
816816 this . setNotificationHandler ( ToolListChangedNotificationSchema , ( ) => {
@@ -819,12 +819,12 @@ export class Client<
819819 toolListChangedOptions . onToolListChanged ?.( null , null ) ;
820820 return ;
821821 }
822-
822+
823823 // Clear any pending debounce timer
824824 if ( this . _toolListChangedDebounceTimer ) {
825825 clearTimeout ( this . _toolListChangedDebounceTimer ) ;
826826 }
827-
827+
828828 // Set up debounced refresh
829829 this . _toolListChangedDebounceTimer = setTimeout ( async ( ) => {
830830 let tools : Tool [ ] | null = null ;
0 commit comments