Conversation
Summary by CodeRabbit
WalkthroughThe changes update logging levels in the tool execution process, simplify schema conversion by directly accessing struct fields, and enhance response text extraction to handle multiple content types with improved fallback logic. No changes were made to exported or public entity declarations; only internal method implementations were modified. Changes
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate Unit Tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
# Improved MCP Tool Handling and Logging This PR makes several improvements to the MCP (Multi-Client Protocol) manager: 1. Changed tool execution logging from `Info` to `Debug` level to reduce log verbosity 2. Simplified the `convertMCPToolToBifrostSchema` function by directly using properties from the MCP tool schema 3. Enhanced `extractTextFromMCPResponse` to properly handle different content types: - Text content - Image content - Audio content - Embedded resources - Fallback handling for unknown content types The improved response extraction provides better formatting and more detailed information about the content type being returned from MCP tool executions.

Improved MCP Tool Handling and Logging
This PR makes several improvements to the MCP (Multi-Client Protocol) manager:
InfotoDebuglevel to reduce log verbosityconvertMCPToolToBifrostSchemafunction by directly using properties from the MCP tool schemaextractTextFromMCPResponseto properly handle different content types:The improved response extraction provides better formatting and more detailed information about the content type being returned from MCP tool executions.