File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const roots: Map<string | undefined, Root[]> = new Map<
3030 */
3131export const syncRoots = async ( server : McpServer , sessionId ?: string ) => {
3232 const clientCapabilities = server . server . getClientCapabilities ( ) || { } ;
33- const clientSupportsRoots : boolean = clientCapabilities . roots !== undefined ;
33+ const clientSupportsRoots : boolean = clientCapabilities ? .roots !== undefined ;
3434
3535 // Fetch the roots list for this client
3636 if ( clientSupportsRoots ) {
@@ -48,7 +48,7 @@ export const syncRoots = async (server: McpServer, sessionId?: string) => {
4848 {
4949 level : "info" ,
5050 logger : "everything-server" ,
51- data : `Roots updated: ${ response . roots . length } root(s) received from client` ,
51+ data : `Roots updated: ${ response ? .roots ? .length } root(s) received from client` ,
5252 } ,
5353 sessionId
5454 ) ;
You can’t perform that action at this time.
0 commit comments