@spaik/mcp-server-roi
Version:
MCP server for AI ROI prediction and tracking with Monte Carlo simulations
31 lines • 1.29 kB
TypeScript
import type { UseCase } from '../../schemas/use-case.js';
import type { ProjectionCreate } from '../../schemas/projection.js';
export interface ROIEngineConfig {
defaultDiscountRate: number;
implementationMonths: number;
rampUpMonths: number;
confidenceMultipliers: {
conservative: number;
expected: number;
optimistic: number;
};
}
export declare class ROIEngine {
private calculator;
private config;
constructor(config?: Partial<ROIEngineConfig>);
/**
* Calculate ROI projection from use cases
*
* Note on development hours:
* - If implementationCosts.development_hours > 0: Assumes this is the total for the entire project
* - If implementationCosts.development_hours = 0: Sums up individual use case development hours
* - This prevents double-counting when project-level hours already include use case work
*/
calculateProjection(projectId: string, useCases: UseCase[], implementationCosts: ProjectionCreate['implementation_costs'], timelineMonths: number, scenarioName?: string): ProjectionCreate;
private aggregateUseCaseMetrics;
private calculateFinancialMetrics;
private calculateTotalInvestment;
private generateAssumptions;
}
//# sourceMappingURL=roi-engine.d.ts.map