UNPKG

@siva-sub/mcp-public-transport

Version:

A Model Context Protocol server for Singapore transport data with real-time information and routing

20 lines (19 loc) 501 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseTool = void 0; class BaseTool { createSchema(properties, required) { return { type: 'object', properties, required: required || [], }; } formatError(error, toolName) { return { error: `Tool '${toolName}' failed: ${error.message}`, timestamp: new Date().toISOString(), }; } } exports.BaseTool = BaseTool;