File tree Expand file tree Collapse file tree 5 files changed +14
-2
lines changed Expand file tree Collapse file tree 5 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,9 @@ The Browserbase MCP server accepts the following command-line flags:
140
140
| -------------------------- | --------------------------------------------------------------------------- |
141
141
| ` --proxies ` | Enable Browserbase proxies for the session |
142
142
| ` --advancedStealth ` | Enable Browserbase Advanced Stealth (Only for Scale Plan Users) |
143
+ | ` --keepAlive ` | Enable Browserbase Keep Alive Session |
143
144
| ` --contextId <contextId> ` | Specify a Browserbase Context ID to use |
144
- | ` --persist [boolean] ` | Whether to persist the Browserbase context (default: true) |
145
+ | ` --persist ` | Whether to persist the Browserbase context (default: true) |
145
146
| ` --port <port> ` | Port to listen on for HTTP/SHTTP transport |
146
147
| ` --host <host> ` | Host to bind server to (default: localhost, use 0.0.0.0 for all interfaces) |
147
148
| ` --cookies [json] ` | JSON array of cookies to inject into the browser |
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ export type Config = {
23
23
* @default false
24
24
*/
25
25
advancedStealth ?: boolean ;
26
+ /**
27
+ * Whether or not to keep the Browserbase session alive
28
+ *
29
+ * @default false
30
+ */
31
+ keepAlive ?: boolean ;
26
32
/**
27
33
* Potential Browserbase Context to use
28
34
* Would be a context ID
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @browserbasehq/mcp-server-browserbase" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"description" : " MCP server for AI web browser automation using Browserbase and Stagehand" ,
5
5
"license" : " Apache-2.0" ,
6
6
"author" : " Browserbase, Inc. (https://www.browserbase.com/)" ,
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ export const configSchema = z
48
48
. describe (
49
49
"Use advanced stealth mode. Only available to Browserbase Scale Plan users" ,
50
50
) ,
51
+ keepAlive : z
52
+ . boolean ( )
53
+ . optional ( )
54
+ . describe ( "Whether or not to keep the Browserbase session alive" ) ,
51
55
context : z
52
56
. object ( {
53
57
contextId : z
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export const createStagehandInstance = async (
36
36
browserbaseSessionCreateParams : {
37
37
projectId,
38
38
proxies : config . proxies ,
39
+ keepAlive : config . keepAlive ?? false ,
39
40
browserSettings : {
40
41
viewport : {
41
42
width : config . viewPort ?. browserWidth ?? 1024 ,
You can’t perform that action at this time.
0 commit comments