@edicarlos.lds/businessmap-mcp
Version:
Model Context Protocol server for BusinessMap (Kanbanize) integration
34 lines • 1.02 kB
TypeScript
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { BusinessMapClient } from '../../client/businessmap-client.js';
/**
* Base interface for tool handlers
*/
export interface BaseToolHandler {
/**
* Register all tools provided by this handler
* @param server The MCP server instance
* @param client The BusinessMap client instance
* @param readOnlyMode Whether the server is in read-only mode
*/
registerTools(server: McpServer, client: BusinessMapClient, readOnlyMode: boolean): void;
}
/**
* Standard error handler for tool responses
*/
export declare function createErrorResponse(error: unknown, operation: string): {
content: {
type: "text";
text: string;
}[];
isError: boolean;
};
/**
* Standard success handler for tool responses
*/
export declare function createSuccessResponse(data: unknown, message?: string): {
content: {
type: "text";
text: string;
}[];
};
//# sourceMappingURL=base-tool.d.ts.map