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 @@ -20,8 +20,8 @@ export const roots: Map<string | undefined, Root[]> = new Map<
2020 * notification handler. This ensures that updates are automatically fetched and handled
2121 * in real-time.
2222 *
23- * Therefore, calls to this function should only request roots from the client once per
24- * session, but the cache will always be up to date after that first call .
23+ * This function is idempotent. It should only request roots from the client once per session,
24+ * returning the cached version thereafter .
2525 *
2626 * @param {McpServer } server - An instance of the MCP server used to communicate with the client.
2727 * @param {string } [sessionId] - An optional session id used to associate the roots list with a specific client session.
You can’t perform that action at this time.
0 commit comments