@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
40 lines • 1.55 kB
JavaScript
/**
* Get Entity Details Tool - Individual Module
* @description Retrieves detailed information about specific entities with complex formatting
* @since 2025-08-04
* @author Tool Modularization Team
*
* Migration Status: PENDING
* Original Method: OptimizelyMCPTools.getEntityDetails
* Complexity: HIGH
* Dependencies: storage.query, logger, errorMapper
*/
/**
* Creates the Get Entity Details tool with injected dependencies
* @param deps - Injected dependencies (storage, logger, errorMapper, etc.)
* @returns Tool definition with handler
*/
export function createGetEntityDetailsTool(deps) {
return {
name: 'get_entity_details',
requiresCache: true,
category: 'discovery',
handler: async (args) => {
// TODO: Migrate implementation from OptimizelyMCPTools.getEntityDetails
// This is a placeholder implementation
deps.logger.info('GetEntityDetails: Executing tool', { args });
try {
// TODO: Add actual implementation here
throw new Error('GetEntityDetails tool not yet implemented - pending migration');
}
catch (error) {
deps.logger.error({ error: error.message }, 'GetEntityDetails: Tool execution failed');
throw deps.errorMapper.toMCPError(error, {
operation: 'Get detailed entity information',
tool: 'get_entity_details'
});
}
}
};
}
//# sourceMappingURL=GetEntityDetails.js.map