UNPKG

brave-search-mcp

Version:

MCP Server that uses Brave Search API to search for images, general web search, video, news and points of interest.

19 lines (18 loc) 478 B
export class BaseTool { constructor() { } async execute(input) { try { return await this.executeCore(input); } catch (error) { console.error(`Error executing ${this.name}:`, error); return { content: [{ type: 'text', text: `Error in ${this.name}: ${error}`, }], isError: true, }; } } }