Files
crawlab/mcp/src/tools.ts
Marvin Zhang 2d0508a0c2 feat: Add AI tools for LLM provider management and AutoProbe configurations
- Implemented new API methods in CrawlabClient for managing LLM providers and AutoProbes.
- Added prompts for setting up AI-powered web scraping with AutoProbe and configuring LLM providers.
- Created a new module for AI tools, integrating various functionalities including listing, creating, updating, and deleting LLM providers and AutoProbes.
- Enhanced error handling and response formatting for better user experience.
2025-06-19 16:31:58 +08:00

27 lines
1.1 KiB
Go

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { CrawlabClient } from "./client.js";
import { configureSpiderTools } from "./tools/spiders.js";
import { configureTaskTools } from "./tools/tasks.js";
import { configureNodeTools } from "./tools/nodes.js";
import { configureScheduleTools } from "./tools/schedules.js";
import { configureSystemTools } from "./tools/system.js";
import { configureProjectTools } from "./tools/projects.js";
import { configureDatabaseTools } from "./tools/databases.js";
import { configureGitTools } from "./tools/git.js";
import { configureStatsTools } from "./tools/stats.js";
import { configureAITools } from "./tools/ai.js";
export function configureAllTools(server: McpServer, client: CrawlabClient) {
configureSpiderTools(server, client);
configureTaskTools(server, client);
configureNodeTools(server, client);
configureScheduleTools(server, client);
configureSystemTools(server, client);
configureProjectTools(server, client);
configureDatabaseTools(server, client);
configureGitTools(server, client);
configureStatsTools(server, client);
configureAITools(server, client);
}