Authenticated pages #82
-
|
Is there any guidance on how to deal with authenticated pages? I think the ideal scenario would be some sort of config where we could set a cookie to be used by the chrome session opened by the MCP. btw, thanks for the team working on this MCP. I believe it's gonna help a lot |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
when I login manually I type 'try again ' and it will continue to test |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Adding a note for anyone landing here later: the tradeoff with a CDP-driven setup is that you're either launching a fresh profile or attaching to an existing Chrome, and each has its own auth headaches (separate profile = re-login; attaching = you're driving your real session, which you may or may not want). An alternative shape is running the agent as a browser extension instead — it operates inside the session you're already in, so authenticated pages and 2FA-gated flows just work, no profile or cookie plumbing. That's the approach we took with WebBrain (open source, MIT): https://github.com/webbrain-one/webbrain — different tradeoffs, not a drop-in replacement for what this MCP does. |
Beta Was this translation helpful? Give feedback.
--auto-connectis likely the solution you are looking for. see https://github.com/ChromeDevTools/chrome-devtools-mcp#configuration