touchdesigner-mcp-server
Version:
MCP server for TouchDesigner
19 lines (18 loc) • 540 B
TypeScript
import type { ToolNames } from "../features/tools/index.js";
import type { ILogger } from "./logger.js";
/**
* Standard API error response structure compatible with MCP SDK
*/
interface ErrorResponse {
[key: string]: unknown;
isError: true;
content: Array<{
type: "text";
text: string;
}>;
}
/**
* Handles API errors consistently across the application
*/
export declare function handleToolError(error: unknown, logger: ILogger, toolName: ToolNames, referenceComment?: string): ErrorResponse;
export {};