Skip to content

Commit b4bbc92

Browse files
committed
fix: add optional GEMINI_API_KEY input (required by default Stagehand model)
1 parent ba8f37a commit b4bbc92

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

servers/com.browserbase-mcp.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
],
2828
"env": {
2929
"BROWSERBASE_API_KEY": "${input:BROWSERBASE_API_KEY}",
30-
"BROWSERBASE_PROJECT_ID": "${input:BROWSERBASE_PROJECT_ID}"
30+
"BROWSERBASE_PROJECT_ID": "${input:BROWSERBASE_PROJECT_ID}",
31+
"GEMINI_API_KEY": "${input:GEMINI_API_KEY}"
3132
},
3233
"metadata": {
3334
"inputs": [
@@ -58,6 +59,20 @@
5859
"instructions": "1. Log in to browserbase.com\n2. Open your project in the dashboard\n3. Copy the Project ID from the project settings",
5960
"button_label": "Get Project ID"
6061
}
62+
},
63+
{
64+
"id": "GEMINI_API_KEY",
65+
"label": "Gemini API Key",
66+
"description": "Google Gemini API key. Required by default (Stagehand uses Gemini 2.0 Flash). Optional if using a custom model via --modelApiKey.",
67+
"type": "text",
68+
"required": false,
69+
"secret": true,
70+
"placeholder": "AIzaSy...",
71+
"obtain": {
72+
"url": "https://aistudio.google.com/apikey",
73+
"instructions": "1. Go to Google AI Studio\n2. Click 'Get API key'\n3. Create a new API key or select an existing one\n4. Copy the key",
74+
"button_label": "Get API Key"
75+
}
6176
}
6277
]
6378
}

0 commit comments

Comments
 (0)