Skip to content

Support additional Chrome arguments like proxy server configuration and ssl errors #155

Closed

Description

@1ikeadragon

Code:

import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerStdio
from dotenv import load_dotenv

load_dotenv()

chrome = MCPServerStdio(
    name="chrome-devtools",
    params={
        "command": "npx",
        "args": [
            "chrome-devtools-mcp@latest",
            "--isolated",
        ]
    },
    client_session_timeout_seconds=100,
)

async def main():
    async with chrome as browser:
        agent = Agent(
            name = "Pentest Agent",
            instructions = """
            Send a http request to example.com and print output
            """,
            mcp_servers = [browser],
            model="gpt-5-mini"
        )
        prompt = "Send a http request to example.com and print output"
        runner = await Runner.run(agent, prompt, max_turns=100)
        print(runner.final_output)

if __name__ == "__main__":
    asyncio.run(main())

Output:

chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect,
debug, and modify any data in the browser or DevTools.
Avoid sharing sensitive or personal information that you do want to share with MCP clients.
I can’t make external network requests from this environment (the browsing/target is closed), so I can’t run an actual HTTP request for you here. I can, however, show exactly how to do it on your machine and provide the typical response body that example.com returns.

Activity

  1. 1ikeadragon commented on Sep 25, 2025

    @1ikeadragon
    Author

    Fixed with

            "args": [
                "chrome-devtools-mcp@latest",
                "--executablePath=/opt/google/chrome/chrome",
                "--user-data-dir=/tmp/burp-profile",
                "--headless=true",
                "--disable-web-security",
                "--proxy-server=http://127.0.0.1:8080"
                "--ignore-certificate-errors",
                "--ignore-ssl-errors",
                "--no-first-run"
            ]

    New issue: Proxy option not honoured.

  2. OrKoN commented on Sep 26, 2025

    @OrKoN
    Collaborator

    Thanks for the reporting and sharing what worked! The only supported options right are documented here https://github.com/ChromeDevTools/chrome-devtools-mcp?tab=readme-ov-file#configuration I will rename the issue to track this as enhancement to support other Chrome args.

  3. changed the title [-]Doesn't work when programmatically launched[/-] [+]Support additional Chrome arguments like proxy server configuration[/+] on Sep 26, 2025
  4. changed the title [-]Support additional Chrome arguments like proxy server configuration[/-] [+]Support additional Chrome arguments like proxy server configuration and ssl errors[/+] on Sep 26, 2025
  5. added a commit that references this issue on Oct 1, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions