buzz-acp: scrub env values from agent notification logging
While testing an ACP agent integration, I observed that some agents rebroadcast the user's full MCP server configurations — including plaintext env values such as API keys — in custom notifications (observed: grok's _x.ai/mcp/servers_updated). Any client or harness that logs raw agent streams (debug tracing, transcript capture, observer feeds) will persist those secrets to disk.
Two-part suggestion:
- Defensive (this repo): redact values for well-known secret-shaped keys (
*_API_KEY,*_TOKEN,*_SECRET, …) in any path where buzz-acp or the desktop app logs/relays raw agent notifications. - Root cause (upstream): agent CLIs shouldn't transmit MCP env values over ACP at all — server name/command suffice for client display. I'll raise this with xAI separately; filing here so the defensive fix isn't coupled to that timeline.
Context: surfaced during #2812 verification (details deliberately omitted here; no secrets were included in that PR's dossier either).
🤖 Generated with Claude Code
Taking this. Plan: redact secret-shaped MCP env values (API keys, tokens, secrets) on buzz-acp / desktop notification logging paths so plaintext credentials never land in traces or transcripts. Will add unit tests.
Opened a PR for this: https://github.com/block/buzz/pull/2869
PR: https://github.com/block/buzz/pull/2869