@toolprint/hypertool-mcp
Version:
HyperTool MCP proxy server for routing requests between clients and multiple underlying MCP servers
51 lines • 1.46 kB
TypeScript
/**
* Database service using file-based implementation
*/
import { IDatabaseService, IServerConfigRecordRepository, IServerConfigGroupRepository, IConfigSourceRepository } from "./interfaces.js";
/**
* Database service that uses file-based implementation
*/
export declare class CompositeDatabaseService implements IDatabaseService {
private implementation;
private isInitialized;
constructor();
/**
* Get the servers repository
*/
get servers(): IServerConfigRecordRepository;
/**
* Get the groups repository
*/
get groups(): IServerConfigGroupRepository;
/**
* Get the config sources repository
*/
get configSources(): IConfigSourceRepository;
/**
* Initialize the database
*/
init(): Promise<void>;
/**
* Close the database
*/
close(): Promise<void>;
/**
* Reset the database for testing purposes
* Only available in test environment
*/
resetForTesting(): void;
/**
* Get the underlying implementation type (for debugging/testing)
*/
getImplementationType(): "file";
}
/**
* Get the singleton database service instance
*/
export declare function getCompositeDatabaseService(): IDatabaseService;
/**
* Reset the singleton instance for testing
* Only available in test environment
*/
export declare function resetCompositeDatabaseServiceForTesting(): void;
//# sourceMappingURL=compositeDatabaseService.d.ts.map