fix: remote Chrome PDF export & MCP endpoint sync #15

Merged
sharang merged 1 commits from fix/chrome-in-agent into main 2026-03-13 10:12:20 +00:00
Owner

Summary

  • Support CHROME_WS_URL env var for PDF report generation via Chrome DevTools Protocol over WebSocket (e.g. ws://chrome-service:3000), with fallback to local binary
  • Fix MCP server endpoint URLs not updating when MCP_ENDPOINT_URL env var changes — previously records were seeded once on first boot with localhost:8090 and never updated

Config

Set in Coolify for the agent service:

CHROME_WS_URL=ws://l4skskkcskkggs0gckgsggg8-141635054831:3000

The MCP_ENDPOINT_URL on the dashboard will now auto-sync stored records on each boot.

Test plan

  • Compiles with CI clippy flags
  • PDF export works via remote Chrome
  • MCP servers page shows correct endpoint after reboot

🤖 Generated with Claude Code

## Summary - Support `CHROME_WS_URL` env var for PDF report generation via Chrome DevTools Protocol over WebSocket (e.g. `ws://chrome-service:3000`), with fallback to local binary - Fix MCP server endpoint URLs not updating when `MCP_ENDPOINT_URL` env var changes — previously records were seeded once on first boot with `localhost:8090` and never updated ## Config Set in Coolify for the agent service: ``` CHROME_WS_URL=ws://l4skskkcskkggs0gckgsggg8-141635054831:3000 ``` The `MCP_ENDPOINT_URL` on the dashboard will now auto-sync stored records on each boot. ## Test plan - [x] Compiles with CI clippy flags - [ ] PDF export works via remote Chrome - [ ] MCP servers page shows correct endpoint after reboot 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-03-13 09:58:17 +00:00
fix: remote Chrome PDF via CDP, sync MCP endpoint URL on boot
All checks were successful
CI / Check (pull_request) Successful in 11m33s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped
584ef2c822
- Add CHROME_WS_URL env var support for PDF report generation via
  Chrome DevTools Protocol over WebSocket (falls back to local binary)
- Update seeded MCP server endpoint URLs on boot when MCP_ENDPOINT_URL
  env var differs from stored value (previously only seeded once)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sharang merged commit 4eac1209d8 into main 2026-03-13 10:12:20 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#15