browser-console-mcp 1.0.0 → 1.0.1
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/package.json +2 -3
- package/bin/cli.js +0 -65
- package/mcp.json +0 -15
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-console-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MCP client for browser console and server for Cursor",
|
|
5
5
|
"main": "dist/server/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"browser-console-mcp": "./bin/
|
|
9
|
-
"browser-mcp-server": "./bin/browser-mcp-server.js"
|
|
8
|
+
"browser-console-mcp": "./bin/browser-mcp-server.js"
|
|
10
9
|
},
|
|
11
10
|
"keywords": [
|
|
12
11
|
"mcp",
|
package/bin/cli.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Browser Console MCP CLI
|
|
5
|
-
*
|
|
6
|
-
* Command line entry point for starting the MCP server
|
|
7
|
-
* Supports running directly through npx or after global installation
|
|
8
|
-
*
|
|
9
|
-
* Usage:
|
|
10
|
-
* - Global installation: browser-console-mcp start
|
|
11
|
-
* - npx: npx browser-console-mcp start
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { spawn } from "node:child_process";
|
|
15
|
-
import { dirname, join } from "node:path";
|
|
16
|
-
import { fileURLToPath } from "node:url";
|
|
17
|
-
|
|
18
|
-
// Get current file directory
|
|
19
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
20
|
-
const __dirname = dirname(__filename);
|
|
21
|
-
const rootDir = join(__dirname, "..");
|
|
22
|
-
|
|
23
|
-
// Command line arguments
|
|
24
|
-
const args = process.argv.slice(2);
|
|
25
|
-
const command = args[0] || "help";
|
|
26
|
-
|
|
27
|
-
// Process command
|
|
28
|
-
switch (command) {
|
|
29
|
-
case "start":
|
|
30
|
-
// Start server-side MCP server
|
|
31
|
-
console.log("Starting Browser Console MCP server...");
|
|
32
|
-
spawn("node", [join(rootDir, "dist/server/index.js")], {
|
|
33
|
-
stdio: "inherit",
|
|
34
|
-
});
|
|
35
|
-
break;
|
|
36
|
-
|
|
37
|
-
case "start:browser":
|
|
38
|
-
// Start browser MCP server
|
|
39
|
-
console.log("Starting Browser MCP server...");
|
|
40
|
-
spawn("node", [join(rootDir, "dist/browser/index.js")], {
|
|
41
|
-
stdio: "inherit",
|
|
42
|
-
});
|
|
43
|
-
break;
|
|
44
|
-
|
|
45
|
-
default:
|
|
46
|
-
console.log(`
|
|
47
|
-
Browser Console MCP CLI
|
|
48
|
-
|
|
49
|
-
Usage:
|
|
50
|
-
browser-console-mcp <command> [options]
|
|
51
|
-
npx browser-console-mcp <command> [options]
|
|
52
|
-
|
|
53
|
-
Commands:
|
|
54
|
-
start Start server-side MCP server
|
|
55
|
-
start:browser Start browser MCP server
|
|
56
|
-
help Display help information
|
|
57
|
-
|
|
58
|
-
Examples:
|
|
59
|
-
browser-console-mcp start
|
|
60
|
-
npx browser-console-mcp start
|
|
61
|
-
browser-console-mcp start:browser
|
|
62
|
-
npx browser-console-mcp start:browser
|
|
63
|
-
`);
|
|
64
|
-
break;
|
|
65
|
-
}
|