Skip to content

Commit 677f40a

Browse files
committed
In roots.ts, clientCapabilites.roots and response.roots are optional.
Fixes #2818
1 parent 7300631 commit 677f40a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/everything/server/roots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const syncRoots = async (server: McpServer, sessionId?: string) => {
4141
const response = await server.server.listRoots();
4242
if (response && "roots" in response) {
4343
// Store the roots list for this client
44-
roots.set(sessionId, response?.roots);
44+
roots.set(sessionId, response.roots);
4545

4646
// Notify the client of roots received
4747
await server.sendLoggingMessage(

0 commit comments

Comments
 (0)