Skip to main content
Glama

SQL MCP Server

by polarisxb
MIT License
1
5
  • Apple
  • Linux
defaults.ts1.39 kB
import { DatabaseType } from '../types/database.js'; /** * 默认应用配置 * 这些值将被环境变量和配置文件覆盖 */ export const DEFAULT_CONFIG = { database: { type: DatabaseType.MySQL, host: 'localhost', port: 3306, user: 'root', password: '', database: '', connectionTimeout: 10000, pool: { connectionLimit: 10, waitForConnections: true, queueLimit: 0 } }, cache: { enabled: true, ttl: 3600, // 1小时 storage: 'memory' as const, maxSize: 100, // 缓存项目数 filePath: './cache', prewarmOnStart: true }, security: { readOnly: true, sensitiveFields: ['password', 'credit_card', 'ssn', 'token', 'secret'], maxQueryLength: 5000, sampleMaxRows: 100, queryTimeoutMs: 10000, rateLimit: { enabled: false, windowMs: 60000, max: 120, perIpMax: 60 }, queryMaxRows: 200 }, logging: { level: 'info' as const, destination: 'console' as const, filePath: './logs/sql-mcp.log', slowQueryMs: 1000, httpRequests: true }, mcp: { transport: 'stdio' as const, httpPort: 3000, serverName: 'sql-mcp', serverVersion: '1.0.0', httpApiKey: undefined as any, httpApiKeys: [], enableDnsRebindingProtection: false, allowedHosts: [], corsAllowedOrigins: [], stdioSafe: false, stdioCompact: false, outputJsonOnly: false } };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/polarisxb/sql-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server