Skip to main content
Glama
vini-cius

SQL Server MCP Service

by vini-cius
sanitize-parameters.ts516 B
export function sanitizeParameters( parameters: Record<string, unknown> ): Record<string, unknown> { const sanitized: Record<string, unknown> = {} for (const [key, value] of Object.entries(parameters)) { if (!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(key)) { throw new Error(`Nome de parâmetro inválido: ${key}`) } if (typeof value === 'string' && value.length > 8000) { throw new Error(`Valor muito longo para parâmetro: ${key}`) } sanitized[key] = value } return sanitized }

Latest Blog Posts

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/vini-cius/mcp-sqlserver'

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