# 🚀 CodeBuddy Code v2.34.0 Release

## ✨ New Features

### SDK MCP Server Support

Added SDK MCP Server type, allowing registration and management of MCP servers through the SDK's internal messaging mechanism, providing SDK developers with more flexible tool extension capabilities.

## 🔧 Improvements

- **MCP Connection Stability**: When MCP servers fail to respond normally, the current session is no longer interrupted. Instead, error information is logged and operation continues, improving the user experience
- **Context Compression Fix**: Fixed errors caused by session state processing exceptions during context compression
- **Configuration Save Optimization**: Use deep comparison to determine default values, avoiding misidentification of object/array type configuration items
- **Plan Mode Interaction Experience**: Optimized the Plan Mode tool confirmation interface display, enhancing user interaction experience when using plan mode
- **Command Display Optimization**: Improved command display in the Bash tool permission confirmation interface, supporting multi-line text wrapping display
- **Session Recovery Enhancement**: SDK automatically returns historical messages when recovering sessions, supporting viewing of previous conversation history
- **Subdirectory Rules Loading**: Support lazy loading of CODEBUDDY.md rule files in subdirectories, using LRU cache to improve performance

## 🐛 Bug Fixes

- **Suggestion Fix**: Fixed errors caused by missing tool call results in exceptional situations

## 📝 Documentation Updates

- **SDK MCP Integration Guide**: Detailed introduction on how to integrate and use MCP servers in CodeBuddy Agent SDK
- **SDK Custom Tools Guide**: Demonstrates how to create and use custom tools directly integrated in the SDK
- **Authentication Documentation**: Added environment variable configuration instructions for China version, Overseas version, and iOA version
