feat: optimize logging system and add tool debugging interface (v0.1.5)
- Redirect FastAPI/Uvicorn logs to loguru to prevent MCP stdio protocol pollution - Implement InterceptHandler class to intercept standard library logging - Configure uvicorn with log_config=None to disable default logging - Remove console log output, only output to file - Add /api/tools endpoint to list available tools - Update README with version 0.1.5 features (Chinese and English)
This commit is contained in:
18
README.md
18
README.md
@@ -331,7 +331,23 @@ Web 管理界面提供:
|
||||
|
||||
## 最近更新
|
||||
|
||||
### 版本 0.1.3(最新)
|
||||
### 版本 0.1.5(最新)
|
||||
|
||||
**新特性:**
|
||||
- ✨ **日志系统优化**:将 FastAPI/Uvicorn 日志重定向到 loguru,防止污染 MCP stdio 协议
|
||||
- ✨ **工具调试接口**:Web 管理界面新增工具列表和调试功能
|
||||
|
||||
**改进:**
|
||||
- 🔧 **日志输出控制**:移除控制台日志输出,仅输出到文件,避免干扰 stdio 协议
|
||||
- 🔧 **标准库日志拦截**:使用 `InterceptHandler` 拦截所有标准库日志
|
||||
- 🔧 **Web API 增强**:新增 `/api/tools` 端点列出可用工具
|
||||
|
||||
**技术细节:**
|
||||
- 实现了 `InterceptHandler` 类来拦截标准库 logging
|
||||
- 配置 uvicorn 使用 `log_config=None` 禁用默认日志
|
||||
- 所有日志统一输出到 `~/.acemcp/log/acemcp.log`
|
||||
|
||||
### 版本 0.1.4
|
||||
|
||||
**新特性:**
|
||||
- ✨ **多编码支持**:自动检测和处理多种文件编码(UTF-8、GBK、GB2312、Latin-1)
|
||||
|
||||
Reference in New Issue
Block a user