Skip to main content

Config Monitoring API Specification

Version: v1.3.0 | Status: Active | Last Updated: April 2026

Purpose​

This document describes the public Python and MCP interfaces for codomyrmex.config_monitoring.

Python API​

SymbolTypePurpose
ConfigurationMonitorClassDetects configuration changes, stores snapshots, and summarizes monitoring state
ConfigWatcherClassPolls a configuration file and invokes a callback when it changes
ConfigChangeDataclassDescribes a detected created, modified, or deleted configuration file
ConfigSnapshotDataclassStores file hashes for an environment snapshot
ConfigAuditDataclassStores audit results, issues, and recommendations
monitor_config_changesFunctionConvenience wrapper for monitoring a list of config paths

MCP Tools​

ToolParametersReturns
config_monitoring_detect_changesconfig_paths: list[str], `workspace_dir: strNone`
config_monitoring_summary`workspace_dir: strNone`
config_monitoring_hash_filefile_path: strStatus, file path, and SHA-256 hash

Error Shape​

MCP tools return dictionaries with status: "error" and message when an operation fails. Successful calls return status: "success" plus tool-specific fields.