π MCP Logs v0.1.1 - Configuration System Complete
π New Features
1. config set Command
Modify configuration values directly from CLI:
mcp-log-agent config set agent.verbose true
mcp-log-agent config set agent.connection_timeout 10
mcp-log-agent config set output.format plain
mcp-log-agent config set filters.min_level warn
mcp-log-agent config set agent.default_command '["npm", "run", "dev"]'Supports all types: boolean, integer, string, enum, array
2. Field-by-Field Config Merging
True hierarchical config merging that preserves unset fields:
- Local configs only override specified fields
- Unset fields inherit from global config or defaults
- Proper TOML table merging at file level
Priority: ENV > Local > Global > Default
3. Extended Environment Variables
New environment variables for complete control:
Colors:
MCP_LOG_COLOR_ERROR_FG=bright_red
MCP_LOG_COLOR_WARN_FG=bright_yellow
MCP_LOG_COLOR_INFO_FG=cyan
MCP_LOG_COLOR_DEBUG_FG=bright_blueFilters:
MCP_LOG_FILTER_MIN_LEVEL=warnAll settings:
- Agent: socket_path, default_project, verbose, connection_timeout, retry_attempts
- Output: colors, format, show_timestamps, show_pid
- Performance: buffer_size, flush_interval
4. Partial Config Support
All structs now have serde defaults:
- Create minimal configs with only the fields you need
- Missing fields automatically use defaults
- No need to specify every parameter
π¦ Installation
Debian/Ubuntu (.deb package):
wget https://github.com/Yaici-Yacine/mcp-logs/releases/download/v0.1.1/mcp-log-agent_0.1.1-1_amd64.deb
sudo dpkg -i mcp-log-agent_0.1.1-1_amd64.debFrom source:
git clone https://github.com/Yaici-Yacine/mcp-logs.git
cd mcp-logs/log-agent
cargo install --path .π Documentation
- Full README: log-agent/README.md
- Main README: README.md
π Bug Fixes
- Improved config merging logic
- Better error handling for config set command
- Fixed TOML parsing for partial configs
π§ Technical Details
Changes:
- ~370 lines of code + documentation
- 3 major features implemented
- 9 test scenarios validated
- Zero compilation warnings
Files modified: log-agent/src/config/loader.rs: Complete refactorlog-agent/src/config/types.rs: Serde defaultslog-agent/src/main.rs: Config set integration- Documentation updates across all READMEs
π Full Changelog
See log-agent/README.md#changelog for complete details.
Author: Yacine Yaici (@Yaici-Yacine)
License: MIT