purchase-mcp-server
Version:
Purchase and budget management server handling requisitions, purchase orders, expenses, budgets, and vendor management with ERP access for data extraction
31 lines (30 loc) • 1.01 kB
TypeScript
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { ToolArguments, ToolResponse } from "../types/index.js";
/**
* Main tool handler that coordinates different categories of tools
*/
export declare class ToolHandler {
private universalToolHandler;
private exportToolHandler;
private mongodbToolHandler;
constructor(server: Server);
/**
* Get company IMO numbers for validation
*/
getCompanyImos(): string[];
/**
* Validate IMO numbers against company IMO list
*/
private validateImoNumber;
/**
* Type-safe casting and validation of tool arguments
*/
private processToolArguments;
/**
* Handles tool calls by routing them to appropriate specialized handlers
* @param name - The name of the tool to call
* @param arguments_ - The arguments for the tool
* @returns Promise resolving to the tool response
*/
handleCallTool(name: string, arguments_: ToolArguments): Promise<ToolResponse>;
}