@@ -83,7 +83,7 @@ export type ClientOptions = ProtocolOptions & {
8383 /**
8484 * Configure automatic refresh behavior for tool list changed notifications
8585 *
86- * @example
86+ * @example
8787 * ```ts
8888 * {
8989 * autoRefresh: true,
@@ -105,7 +105,7 @@ export type ClientOptions = ProtocolOptions & {
105105 * autoRefresh: false,
106106 * onToolListChanged: (err, tools) => {
107107 * // err is always null when autoRefresh is false
108- *
108+ *
109109 * // Manually refresh the tool list
110110 * const result = await this.listTools();
111111 * console.log('Tool list changed:', result.tools);
@@ -487,7 +487,7 @@ export class Client<
487487 const toolListChangedOptions : ToolListChangedOptions = {
488488 autoRefresh : ! ! options . autoRefresh ,
489489 debounceMs : options . debounceMs ?? 300 ,
490- onToolListChanged : options . onToolListChanged ,
490+ onToolListChanged : options . onToolListChanged
491491 } ;
492492 this . _toolListChangedOptions = toolListChangedOptions ;
493493 this . setNotificationHandler ( ToolListChangedNotificationSchema , ( ) => {
@@ -496,12 +496,12 @@ export class Client<
496496 toolListChangedOptions . onToolListChanged ?.( null , null ) ;
497497 return ;
498498 }
499-
499+
500500 // Clear any pending debounce timer
501501 if ( this . _toolListChangedDebounceTimer ) {
502502 clearTimeout ( this . _toolListChangedDebounceTimer ) ;
503503 }
504-
504+
505505 // Set up debounced refresh
506506 this . _toolListChangedDebounceTimer = setTimeout ( async ( ) => {
507507 let tools : Tool [ ] | null = null ;
0 commit comments