UNPKG

dataforseo-mcp-server

Version:

A Model Context Protocol (MCP) server for the DataForSEO API, enabling modular and extensible integration of DataForSEO endpoints with support for both HTTP and SSE transports.

16 lines (15 loc) 560 B
import { z } from 'zod'; export const GlobalToolConfigSchema = z.object({ fullResponse: z.boolean().default(false), debug: z.boolean().default(false) }); // Parse config from environment variables export function parseGlobalToolConfig() { const config = { fullResponse: process.env.DATAFORSEO_FULL_RESPONSE === 'true' ? true : false, debug: process.env.DEBUG === 'true' ? true : false }; return GlobalToolConfigSchema.parse(config); } // Export default config export const defaultGlobalToolConfig = parseGlobalToolConfig();