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:
wmymz
2025-11-10 10:22:11 +08:00
parent c15139f5ee
commit 2917c102b7
8 changed files with 109 additions and 14 deletions

View File

@@ -331,7 +331,23 @@ To enable the web interface, use the `--web-port` argument when starting the ser
## Recent Updates
### Version 0.1.3 (Latest)
### Version 0.1.5 (Latest)
**New Features:**
- ✨ **Logging System Optimization**: Redirect FastAPI/Uvicorn logs to loguru to prevent pollution of MCP stdio protocol
- ✨ **Tool Debugging Interface**: Web management interface now includes tool listing and debugging functionality
**Improvements:**
- 🔧 **Log Output Control**: Removed console log output, only output to file to avoid interfering with stdio protocol
- 🔧 **Standard Library Log Interception**: Use `InterceptHandler` to intercept all standard library logs
- 🔧 **Web API Enhancement**: New `/api/tools` endpoint to list available tools
**Technical Details:**
- Implemented `InterceptHandler` class to intercept standard library logging
- Configured uvicorn with `log_config=None` to disable default logging
- All logs unified to output to `~/.acemcp/log/acemcp.log`
### Version 0.1.4
**New Features:**
- ✨ **Multi-Encoding Support**: Automatic detection and handling of multiple file encodings (UTF-8, GBK, GB2312, Latin-1)