refactor: remove getCustomConfig dependency in config route

This commit is contained in:
Danny Avila 2025-08-17 23:15:43 -04:00
parent 2229672929
commit 677481dde6
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
2 changed files with 27 additions and 13 deletions

View file

@ -54,6 +54,11 @@ export class MCPManager extends UserConnectionManager {
return this.serversRegistry.oauthServers!;
}
/** Get all servers */
public getAllServers(): t.MCPServers | null {
return this.serversRegistry.rawConfigs!;
}
/** Returns all available tool functions from app-level connections */
public getAppToolFunctions(): t.LCAvailableTools | null {
return this.serversRegistry.toolFunctions!;