browser-mcp-lite 1.0.1 → 1.0.2
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.
- package/index.js +19 -16
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -173,22 +173,25 @@ const sep = '\u2501'.repeat(53);
|
|
|
173
173
|
|
|
174
174
|
console.log(`[browser-mcp-lite] MCP server: ${mcpUrl}`);
|
|
175
175
|
console.log(`[browser-mcp-lite] WebSocket: ${wsUrl}`);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
console.log(
|
|
179
|
-
console.log(
|
|
180
|
-
console.log(
|
|
181
|
-
|
|
182
|
-
console.log(`\n\u2501\u2501\u2501 MCP Client Config (save as .mcp.json) \u2501\u2501\u2501`);
|
|
183
|
-
console.log(JSON.stringify({
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
176
|
+
|
|
177
|
+
if (isNew) {
|
|
178
|
+
console.log('\n\u26A0 First run \u2014 new token generated');
|
|
179
|
+
console.log(`\n\u2501\u2501\u2501 Auth Token (paste into Chrome Extension popup) \u2501\u2501\u2501`);
|
|
180
|
+
console.log(TOKEN);
|
|
181
|
+
console.log(sep);
|
|
182
|
+
console.log(`\n\u2501\u2501\u2501 MCP Client Config (save as .mcp.json) \u2501\u2501\u2501`);
|
|
183
|
+
console.log(JSON.stringify({
|
|
184
|
+
mcpServers: {
|
|
185
|
+
browser: {
|
|
186
|
+
type: 'http',
|
|
187
|
+
url: mcpUrl,
|
|
188
|
+
headers: { Authorization: `Bearer ${TOKEN}` },
|
|
189
|
+
},
|
|
189
190
|
},
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
}, null, 2));
|
|
192
|
+
console.log(sep);
|
|
193
|
+
} else {
|
|
194
|
+
console.log(`[browser-mcp-lite] Token: ${TOKEN.slice(0, 8)}...`);
|
|
195
|
+
}
|
|
193
196
|
|
|
194
197
|
console.log('\n[browser-mcp-lite] Waiting for Chrome Extension...');
|