fetcher-mcp
Version:
MCP server for fetching web content using Playwright browser
13 lines (12 loc) • 339 B
JavaScript
import { fetchUrlTool, fetchUrl } from './fetchUrl.js';
import { fetchUrlsTool, fetchUrls } from './fetchUrls.js';
// Export tool definitions
export const tools = [
fetchUrlTool,
fetchUrlsTool
];
// Export tool implementations
export const toolHandlers = {
[fetchUrlTool.name]: fetchUrl,
[fetchUrlsTool.name]: fetchUrls
};