AI-207: Add test coverage and improve robustness for Suggestion Engine#307
AI-207: Add test coverage and improve robustness for Suggestion Engine#307KAishwarya2429 wants to merge 9 commits intoopenMF:mainfrom
Conversation
…l as per review feedback
…l as per review feedback
|
Hi @IOhacker and reviewers, I have addressed all the requested changes:
Please let me know if any further improvements are needed. Thanks for your guidance! |
|
Please review the comments in the earlier pr |
There was a problem hiding this comment.
The generate_suggestions() functionality seems more aligned with client-side orchestration or UI logic, so it would be better placed outside the MCP server repository. The MCP server’s main role is to expose raw API tools to the LLM, and adding hardcoded suggestions within tool responses mixes presentation logic with data, which can affect how the LLM interprets responses. As also mentioned in your docstring, it would be more appropriate to move this feature to a personal AI-agent repository, keeping this layer clean and focused on Fineract integration
…on, and full test coverage
|
Hi @IOhacker and reviewers, I’ve implemented the suggested improvements:
All tests are passing successfully (87/87 ✅), and no existing functionality is affected. This keeps the MCP layer clean while enabling extensible client-side intelligence. Would love your feedback on extending this to other domains like savings and clients. Thanks again! |
… test coverage (89 tests passing)
|
Hi @IOhacker and reviewers, I’ve completed the improvements based on feedback: ✅ Removed suggestion logic from MCP layer (clean separation maintained) The changes are fully backward-compatible and maintain MCP design principles. Looking forward to your feedback! Thanks! |
|
Hi @IOhacker and reviewers, I’ve completed the final improvements for this PR: ✅ Maintained clean separation — no suggestion logic inside MCP tools
The design keeps MCP as a pure execution layer while enabling extensible AI-driven suggestions externally. Would love your feedback on this direction and any further improvements. Thanks! |
|
Hi , @KAishwarya2429 , could you please review the comments or we might have to close this pr . I asked to put the suggestion engine in a personal repo as this repo is strictly a mcp server |
|
Hi @gyanLM10, Thank you for the clarification! I understand that this repository is intended to remain strictly focused on the MCP server. I’ll update the PR accordingly by removing the suggestion engine-related logic and keeping only the changes that align with the project scope. I’ll move the suggestion engine into a separate repository as suggested. Appreciate your guidance! |
Hi @IOhacker and reviewers,
This PR enhances the Suggestion Engine module by improving its reliability, safety, and test coverage while maintaining clean separation from the MCP layer.
✅ Key Improvements
Added comprehensive test coverage for:
Improved robustness of suggestion logic:
Maintained clean architecture:
🧪 Test Coverage
The following scenarios are covered:
🎯 Why this matters
This improves:
All changes are additive and do not affect existing MCP tool behavior.
Please let me know if any further improvements or refinements are needed.
Thanks!