database-mcp
Version:
Model Context Protocol server for multi-database access (PostgreSQL, MySQL, SQLite, Snowflake) with comprehensive introspection and analysis tools
55 lines • 2.1 kB
TypeScript
/**
* Application Constants
*/
import { MCPServerConfig } from '../types/mcp';
export declare const QUERY_LIMITS: {
readonly MAX_ROWS: 1000;
readonly CONNECTION_TIMEOUT: 30000;
readonly IDLE_TIMEOUT: 10000;
readonly MAX_CONNECTIONS: 10;
readonly QUERY_TIMEOUT: 60000;
};
export declare const SERVER_CONFIG: MCPServerConfig;
export declare const SUPPORTED_DATABASE_TYPES: readonly ["postgresql", "mysql", "sqlite", "snowflake"];
export declare const CLOUD_PROVIDERS: readonly ["digitalocean.com", "ondigitalocean.com", "amazonaws.com", "rds.amazonaws.com", "googleapis.com", "azure.com", "heroku.com"];
export declare const DANGEROUS_KEYWORDS: readonly ["drop", "delete", "truncate", "grant", "revoke"];
export declare const ALLOWED_WRITE_KEYWORDS: readonly ["insert", "update", "alter", "create"];
export declare const MAX_SEARCH_RESULTS = 50;
export declare const DEFAULT_SCHEMA = "public";
export declare const SQLITE_EXTENSIONS: readonly [".db", ".sqlite", ".sqlite3"];
export declare const TOOL_CATEGORIES: {
readonly QUERY: "Query Execution";
readonly SCHEMA: "Schema Introspection";
readonly ANALYSIS: "Data Analysis";
readonly DISCOVERY: "Discovery";
readonly INFO: "Database Information";
};
export declare const CONNECTION_PATTERNS: {
readonly postgresql: RegExp;
readonly mysql: RegExp;
readonly sqlite: RegExp;
readonly snowflake: RegExp;
};
export declare const DEFAULT_CONNECTION_OPTIONS: {
readonly postgresql: {
readonly ssl: false;
readonly connectionTimeoutMillis: 30000;
readonly idleTimeoutMillis: 10000;
readonly max: 10;
};
readonly mysql: {
readonly ssl: false;
readonly connectTimeout: 30000;
readonly acquireTimeout: 30000;
readonly timeout: 60000;
};
readonly sqlite: {
readonly timeout: 30000;
};
readonly snowflake: {
readonly timeout: 60000;
readonly clientSessionKeepAlive: true;
readonly clientSessionKeepAliveHeartbeatFrequency: 3600;
};
};
//# sourceMappingURL=constants.d.ts.map