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.
21 lines (20 loc) • 727 B
JavaScript
import { BaseModule } from '../base.module.js';
import { ContentParsingTool } from './tools/content-parsing.tool.js';
import { InstantPagesTool } from './tools/instant-pages.tool.js';
export class OnPageApiModule extends BaseModule {
getTools() {
const tools = [
new ContentParsingTool(this.dataForSEOClient),
new InstantPagesTool(this.dataForSEOClient),
// Add more tools here
];
return tools.reduce((acc, tool) => ({
...acc,
[tool.getName()]: {
description: tool.getDescription(),
params: tool.getParams(),
handler: (params) => tool.handle(params),
},
}), {});
}
}