Skip to content

v0.1.1

Latest

Choose a tag to compare

@Yaici-Yacine Yaici-Yacine released this 06 Jan 22:00
· 20 commits to main since this release

πŸŽ‰ 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_blue

Filters:

MCP_LOG_FILTER_MIN_LEVEL=warn

All 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.deb

From source:

git clone https://github.com/Yaici-Yacine/mcp-logs.git
cd mcp-logs/log-agent
cargo install --path .

πŸ“š Documentation

πŸ› 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 refactor
  • log-agent/src/config/types.rs: Serde defaults
  • log-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