mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
* add user id to mcp tools cache key * tests * clean up redundant tests * remove unused imports
10 lines
366 B
JavaScript
10 lines
366 B
JavaScript
const { ToolCacheKeys } = require('../getCachedTools');
|
|
|
|
describe('getCachedTools - Cache Isolation Security', () => {
|
|
describe('ToolCacheKeys.MCP_SERVER', () => {
|
|
it('should generate cache keys that include userId', () => {
|
|
const key = ToolCacheKeys.MCP_SERVER('user123', 'github');
|
|
expect(key).toBe('tools:mcp:user123:github');
|
|
});
|
|
});
|
|
});
|