chrome-devtools-mcp-for-extension 0.23.1 → 0.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -50,7 +50,8 @@ async function getOrCreateChatGPTPage(context) {
|
|
|
50
50
|
for (const page of pages) {
|
|
51
51
|
const url = page.url();
|
|
52
52
|
if (url.includes('chatgpt.com') || url.includes('chat.openai.com')) {
|
|
53
|
-
// Already on ChatGPT - no navigation needed
|
|
53
|
+
// Already on ChatGPT - bring to front and no navigation needed
|
|
54
|
+
await page.bringToFront();
|
|
54
55
|
return { page, needsNavigation: false };
|
|
55
56
|
}
|
|
56
57
|
}
|
|
@@ -48,6 +48,7 @@ async function getOrCreateGeminiPage(context) {
|
|
|
48
48
|
for (const page of pages) {
|
|
49
49
|
const url = page.url();
|
|
50
50
|
if (url.includes('gemini.google.com')) {
|
|
51
|
+
await page.bringToFront();
|
|
51
52
|
return page;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -214,9 +215,15 @@ export const askGeminiWeb = defineTool({
|
|
|
214
215
|
// Check login only once after navigation
|
|
215
216
|
const needsLogin = await isLoginRequired(page);
|
|
216
217
|
if (needsLogin) {
|
|
217
|
-
response.appendResponseLine('❌
|
|
218
|
+
response.appendResponseLine('\n❌ Geminiへのログインが必要です');
|
|
219
|
+
response.appendResponseLine('');
|
|
220
|
+
response.appendResponseLine('📱 ブラウザウィンドウでGeminiにログインしてください:');
|
|
221
|
+
response.appendResponseLine(' 1. ブラウザウィンドウでGoogleアカウントを選択');
|
|
222
|
+
response.appendResponseLine(' 2. パスワードを入力してログイン');
|
|
223
|
+
response.appendResponseLine(' 3. ログイン完了後、このツールを再実行してください');
|
|
218
224
|
return;
|
|
219
225
|
}
|
|
226
|
+
response.appendResponseLine('✅ ログイン確認完了');
|
|
220
227
|
response.appendResponseLine('質問を送信中...');
|
|
221
228
|
// Input text using the textbox element
|
|
222
229
|
// Gemini uses a textbox with role="textbox" or a div with contenteditable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp-for-extension",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.3",
|
|
4
4
|
"description": "MCP server for Chrome extension development with Web Store automation. Fork of chrome-devtools-mcp with extension-specific tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./scripts/cli.mjs",
|