purchase-mcp-server
Version:
Purchase and budget management server handling requisitions, purchase orders, expenses, budgets, and vendor management with ERP access for data extraction
40 lines (39 loc) • 1.06 kB
TypeScript
import { MongoClient } from 'mongodb';
/**
* Initialize all MongoDB connections
* This should be called during server startup
*/
export declare function initializeConnections(): Promise<void>;
/**
* Get MongoDB client based on URI or default
*/
export declare function getMongoClient(uri?: string): Promise<MongoClient>;
/**
* Get dev-api MongoDB client
*/
export declare function getDevApiClient(): Promise<MongoClient>;
/**
* Get etl-dev MongoDB client
*/
export declare function getEtlDevClient(): Promise<MongoClient>;
/**
* Get etl-dev-data MongoDB client
*/
export declare function getEtlDevDataClient(): Promise<MongoClient>;
/**
* Get etl-dev-data database name
*/
export declare function getEtlDevDataDbName(): string;
/**
* Get dev-api database name
*/
export declare function getDevApiDbName(): string;
/**
* Get etl-dev database name
*/
export declare function getEtlDevDbName(): string;
/**
* Close all MongoDB connections
* This should be called during server shutdown
*/
export declare function closeConnections(): Promise<void>;