hataraku
Version:
An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.
32 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.McpConfigError = exports.McpToolError = void 0;
/**
* Error thrown when there's a problem executing an MCP tool
*/
class McpToolError extends Error {
serverName;
toolName;
originalError;
constructor(serverName, toolName, originalError) {
super(`Error executing ${serverName}/${toolName}: ${originalError.message}`);
this.serverName = serverName;
this.toolName = toolName;
this.originalError = originalError;
this.name = 'McpToolError';
}
}
exports.McpToolError = McpToolError;
/**
* Error thrown when there's a problem with MCP configuration
*/
class McpConfigError extends Error {
originalError;
constructor(message, originalError) {
super(`MCP configuration error: ${message}`);
this.originalError = originalError;
this.name = 'McpConfigError';
}
}
exports.McpConfigError = McpConfigError;
//# sourceMappingURL=errors.js.map