f368b987bb
- Improved the CreateAgentEngine method by breaking down the process into distinct steps for better readability and maintainability. - Added a new registerMCPTools method to streamline the registration of MCP tools based on the agent configuration. - Enhanced error handling and logging for MCP service registration, ensuring clearer feedback during the process. - Introduced resolveKBAndDocInfos to load knowledge base metadata and selected document information for prompt generation.