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.

23 lines (22 loc) 948 B
import { BaseModule } from '../base.module.js'; import { AiOptimizationKeywordDataLocationsAndLanguagesListTool } from './tools/keyword-data/ai-optimization-keyword-data-locations-and-languages.js'; import { AiOptimizationKeywordDataSearchVolumeTool } from './tools/keyword-data/ai-optimization-keyword-data-search-volume.js'; export class AiOptimizationApiModule extends BaseModule { getTools() { const tools = [ new AiOptimizationKeywordDataLocationsAndLanguagesListTool(this.dataForSEOClient), new AiOptimizationKeywordDataSearchVolumeTool(this.dataForSEOClient), ]; return tools.reduce((acc, tool) => ({ ...acc, [tool.getName()]: { description: tool.getDescription(), params: tool.getParams(), handler: (params) => tool.handle(params), }, }), {}); } getPrompts() { return {}; } }