Pre-Release v0.9.9
What's Changed
Bug Fixes
JSON serialization fixed across all CLI commands
Every --format json output path was broken when the Datadog API returned records with timestamp or enum fields. The SDK's .to_dict() produces raw Python datetime and enum objects that stdlib JSON cannot encode. Fixed by adding default=json_default (ISO-formats datetimes, falls back to str() for SDK enum types) to all json.dumps() calls across 11 command files: monitor, dashboard, downtime, event, host, apm, ci, cost, metric, rum.
The dd_monitors_list MCP tool was returning "Unexpected error: Object of type datetime is not JSON serializable" on every non-empty response. All MCP tools that delegate to these commands were affected.
New
Live end-to-end test suite (tests/test_e2e_mcp.py)
23 tests covering every CLI command group against the real Datadog API. Each test asserts exit code 0 and that json.loads() succeeds on the output — the primary serialization regression check. Tests auto-skip when credentials are unavailable. Run with:
uv run pytest tests/test_e2e_mcp.py -vFull Changelog: v0.9.5...v0.9.9