mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
* refactor(mcp): simplify registry to two-repository architecture with explicit storage
* Chore: address AI Review comments
* Simplify MCP config cache architecture and remove legacy code:
Follow-up cleanup to commit d2bfdd033 which refactored MCP registry to two-repository architecture. This removes leftover legacy abstractions that were no longer used.
What changed:
- Simplified ServerConfigsCacheFactory.create() from 3 params to 2 (namespace, leaderOnly)
- Removed unused scope: 'Shared' | 'Private' parameter (only 'Shared' was ever used)
- Removed dead set() and getNamespace() methods from cache classes
- Updated JSDoc to reflect two-repository architecture (Cache + DB) instead of old three-tier system
- Fixed stale mocks and comments referencing removed sharedAppServers, sharedUserServers, privateServersCache
Files changed:
- ServerConfigsCacheFactory.ts - Simplified factory signature
- ServerConfigsCacheRedis.ts - Removed scope, renamed owner→namespace
- ServerConfigsCacheInMemory.ts - Removed unused methods
- MCPServersRegistry.ts - Updated JSDoc, simplified factory call
- RegistryStatusCache.ts - Removed stale JSDoc reference
- MCPManager.test.ts - Fixed legacy mock
- ServerConfigsCacheFactory.test.ts - Updated test assertions
* fix: Update error message in MCPServersRegistry for clarity
---------
Co-authored-by: Atef Bellaaj <slalom.bellaaj@external.daimlertruck.com>
Co-authored-by: Danny Avila <danny@librechat.ai>
44 lines
1 KiB
TypeScript
44 lines
1 KiB
TypeScript
export * from './app';
|
|
export * from './cdn';
|
|
/* Auth */
|
|
export * from './auth';
|
|
/* MCP */
|
|
export * from './mcp/registry/MCPServersRegistry';
|
|
export * from './mcp/MCPManager';
|
|
export * from './mcp/connection';
|
|
export * from './mcp/oauth';
|
|
export * from './mcp/auth';
|
|
export * from './mcp/zod';
|
|
/* Utilities */
|
|
export * from './mcp/utils';
|
|
export * from './utils';
|
|
export * from './db/utils';
|
|
/* OAuth */
|
|
export * from './oauth';
|
|
export * from './mcp/oauth/OAuthReconnectionManager';
|
|
/* Crypto */
|
|
export * from './crypto';
|
|
/* Flow */
|
|
export * from './flow/manager';
|
|
/* Middleware */
|
|
export * from './middleware';
|
|
/* Memory */
|
|
export * from './memory';
|
|
/* Agents */
|
|
export * from './agents';
|
|
/* Prompts */
|
|
export * from './prompts';
|
|
/* Endpoints */
|
|
export * from './endpoints';
|
|
/* Files */
|
|
export * from './files';
|
|
/* Tools */
|
|
export * from './tools';
|
|
/* web search */
|
|
export * from './web';
|
|
/* Cache */
|
|
export * from './cache';
|
|
/* types */
|
|
export type * from './mcp/types';
|
|
export type * from './flow/types';
|
|
export type * from './types';
|