Skip to content

feat(browser): add DevTools MCP relay - #31

Merged
ElbertePlinio merged 6 commits into
mainfrom
feat/devtools-mcp-relay
Jul 13, 2026
Merged

ElbertePlinio merged 6 commits into
mainfrom
feat/devtools-mcp-relay

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Changed

  • Add static picklab-browser agent configuration using picklab browser devtools-mcp.
  • Resolve exactly one live project-local browser and derive its loopback CDP URL in memory.
  • Pin and validate exact [email protected] package name, version, declared bin, and confined real path.
  • Relay bounded JSON-RPC NDJSON with raw-byte preservation, hooks, backpressure, clean EOF/signal handling, and protocol-only stdout.
  • Redact and bound upstream stderr diagnostics.
  • Enforce supported Node branches in packages, CI, release workflow, and installer.
  • Fail promptly on genuine upstream spawn failures and remove installed signal handlers.

This completes PR 6 of #17. The public installer mirror is prepared in pickforge/landing-page#21 and will turn green once this canonical installer lands on main.

Validated

  • bun run typecheck
  • bun run build
  • Full suite: 70 files, 780 passed / 2 skipped
  • Focused relay lifecycle: 22/22
  • Real Chrome through exact upstream relay: navigation, accessibility snapshot, console, and network metadata
  • Serious protocol/security workflow review plus targeted spawn-fix verification: clean

Not tested

  • Platforms outside Linux

Risk

CDP is loopback-only but not isolated from other same-UID local processes. The relay accepts no user-supplied browser URL or websocket capability.

Closes #19
Refs #17

ElbertePlinio and others added 6 commits July 13, 2026 06:09
Connect static agent configuration to the exact upstream server through the active isolated browser session.
Allow the fake upstream enough cleanup time under concurrent focused test load.
Clean up child errors, report forced exits deterministically, and require the real upstream smoke in CI.
Guarantee stubborn children exit, enforce runtime floors, and make shutdown tests deterministic.
@ElbertePlinio
ElbertePlinio merged commit ac20ca8 into main Jul 13, 2026
1 check passed
@ElbertePlinio
ElbertePlinio deleted the feat/devtools-mcp-relay branch July 13, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a session-aware Chrome DevTools MCP bridge

1 participant