Skip to content

browser: check that the DevTools relay cannot reach another Chrome on its old CDP port #444

Closed

Description

@ElbertePlinio

The Chrome DevTools MCP relay for a browser session (packages/browser/src/devtools-mcp.ts) reads the session's status once at start, takes its CDP port, and passes --browser-url http://127.0.0.1:<port> to the chrome-devtools-mcp child. After that it checks only the human lease (createTakeoverBusyIntercept): it takes no agent permit and does not read the session record again.

If the relay outlives its browser, for example after the session is destroyed while an agent keeps the MCP connection open, and another Chrome later listens on the same port, the relay's child could attach to that browser. Found while reviewing #413; not reproduced yet.

  • Check whether the relay stops when its browser session ends, and test it
  • If it does not, stop the relay, or verify the session and its browser identity before each forwarded call
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