Skip to content

Commit 0fb9286

Browse files
authored
Merge pull request #43 from browserbase/sarif/upgrade-sh-version-and-fix-local
Update Stagehand Version
2 parents 4d7cabd + 7f41ace commit 0fb9286

File tree

5 files changed

+434
-103
lines changed

5 files changed

+434
-103
lines changed

stagehand/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,30 @@ A Model Context Protocol (MCP) server that provides AI-powered web automation ca
2020
"BROWSERBASE_API_KEY": "<YOUR_BROWSERBASE_API_KEY>",
2121
"BROWSERBASE_PROJECT_ID": "<YOUR_BROWSERBASE_PROJECT_ID>",
2222
"OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>",
23+
"CONTEXT_ID": "<YOUR_CONTEXT_ID>"
2324
}
2425
}
2526
}
2627
}
2728
```
29+
or, for running locally, first [**open Chrome in debug mode**](https://docs.stagehand.dev/examples/customize_browser#use-your-personal-browser) like so:
30+
31+
`open -a "Google Chrome" --args --remote-debugging-port=9222`
32+
```json
33+
{
34+
"mcpServers": {
35+
"stagehand": {
36+
"command": "node",
37+
"args": ["path/to/mcp-server-browserbase/stagehand/dist/index.js"],
38+
"env": {
39+
"OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>",
40+
"LOCAL_CDP_URL": "http://localhost:9222"
41+
}
42+
}
43+
}
44+
}
45+
```
46+
> 💡 Check out our [documentation](https://docs.stagehand.dev/examples/customize_browser#use-your-personal-browser) for getting your local CDP url!
2847
2948
3. Restart your Claude Desktop app and you should see the tools available clicking the 🔨 icon.
3049

0 commit comments

Comments
 (0)