Skip to content

Add a session-aware Chrome DevTools MCP bridge #19

Closed

Description

@ElbertePlinio

Parent: #17
Depends on: #18

Goal

Let agents use the official Chrome DevTools MCP against the active PickLab browser through static agent configuration, without reimplementing the DevTools surface or editing configuration for every session.

Contract

picklab browser devtools-mcp:

  1. Resolves exactly one live project-local browser-capable session.
  2. Derives http://127.0.0.1:<cdpPort> in memory.
  3. Starts an exact-version direct dependency of the official Chrome DevTools MCP.
  4. Validates the installed version and fails closed on mismatch.
  5. Relays complete JSON-RPC/MCP frames while preserving IDs, cancellation, exit status, signals, and shutdown.

No runtime npx, range pin, optional peer, websocket GUID persistence, or personal browser connection.

The relay must be framing-aware from day one, with internal before-forward and after-response hooks. #20 uses them for evidence and #21 uses them to suspend forwarding during human control. Stdout contains protocol frames only; redacted diagnostics go to stderr.

Agent installers add a second static entry:

{
  "mcpServers": {
    "picklab": {
      "command": "picklab",
      "args": ["mcp", "serve"]
    },
    "picklab-browser": {
      "command": "picklab",
      "args": ["browser", "devtools-mcp"]
    }
  }
}

Recreating the browser session never requires configuration edits.

Checklist

  • Exact upstream dependency/version policy
  • Capability-based browser resolution
  • Framing-aware stdio relay
  • Cancellation, shutdown, signals, exit codes, and stdout purity
  • Structured diagnostic redaction
  • Before-forward / after-response hooks
  • Installer integration for supported agents
  • Fake-upstream protocol tests
  • Real browser DevTools smoke
  • README and docs/releases/UNRELEASED.md
  • PR/review

Validation

  • bun run typecheck
  • focused relay/installer tests
  • bun run test
  • bun run test:coverage
  • bun run build
  • malformed frames and version mismatches fail closed
  • dead/ambiguous/other-project sessions never connect elsewhere
  • real smoke covers navigation, accessibility/DOM, console, and network metadata
  • recreate browser session and reconnect with unchanged agent config

Current status: Planned
Next: begin after #18 finalizes the browser record and lifecycle contract.

Activity

  1. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    Implementation started on feat/devtools-mcp-relay, based on lifecycle PR #28.

    • Exact [email protected] dependency/bin validation
    • Session-aware picklab browser devtools-mcp
    • NDJSON framing, hooks, cancellation/signals/EOF/backpressure
    • Static agent installer entry
    • Fake-upstream and real browser smoke
    • Full validation and PR review

    Current status: In progress
    Next: build the framing-aware relay while #28 review completes.

  2. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    DevTools MCP relay PR opened: #31

    • Rebased onto merged lifecycle + live watch
    • Exact upstream package/bin validation
    • Bounded framing, hooks, backpressure, EOF/signal/exit behavior
    • Genuine spawn-failure hang fixed and independently verified
    • Full suite: 70 files, 780 passed / 2 skipped
    • Real exact-upstream Chrome smoke
    • Public installer mirror prepared in pickforge/landing-page#21
    • Required CI
    • Merge feat(browser): add DevTools MCP relay #31
    • Rerun and merge landing-page#21 sync check

    Current status: In review

  3. ElbertePlinio commented on Jul 13, 2026

    @ElbertePlinio
    MemberAuthor

    PR #31 merged at ac20ca8 after current-head CI passed. Public installer mirror PR pickforge/landing-page#21 then reran against the merged canonical installer and merged at 9d9f64b.

    • Exact upstream DevTools MCP relay
    • Static agent configuration
    • Project-local live-browser resolution
    • Bounded framing, redacted diagnostics, hooks, backpressure, and shutdown
    • Genuine spawn-failure teardown
    • Full local and hosted validation
    • Canonical/public installer byte parity

    Current status: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions