@oimdb/mcp 1.1.0 → 2.0.0
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/README.md +132 -32
- package/bin/cdp.cjs +8 -6
- package/bin/devtools.cjs +22 -7
- package/bin/oimdb-mcp.cjs +35 -0
- package/bin/server.cjs +22 -9
- package/dist/index.cjs +290 -148
- package/dist/index.d.cts +47 -33
- package/dist/index.d.ts +47 -33
- package/dist/index.js +291 -149
- package/package.json +17 -9
- package/ui/app.js +1 -1
- package/ui/index.html +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oimdb/mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "MCP server and CDP inspector for OIMDB
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "MCP server and CDP inspector for OIMDB \u2014 connects AI assistants to live browser state",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -14,13 +14,17 @@
|
|
|
14
14
|
".": {
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"import": "./dist/index.js",
|
|
17
|
-
"require":
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./dist/index.d.cts",
|
|
19
|
+
"default": "./dist/index.cjs"
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
},
|
|
23
|
+
"oimdbRelease": {
|
|
24
|
+
"publish": true
|
|
25
|
+
},
|
|
20
26
|
"bin": {
|
|
21
|
-
"oimdb-mcp": "bin/
|
|
22
|
-
"oimdb-devtools": "bin/devtools.cjs",
|
|
23
|
-
"oimdb-cdp": "bin/cdp.cjs"
|
|
27
|
+
"oimdb-mcp": "bin/oimdb-mcp.cjs"
|
|
24
28
|
},
|
|
25
29
|
"files": [
|
|
26
30
|
"dist",
|
|
@@ -30,8 +34,9 @@
|
|
|
30
34
|
"scripts": {
|
|
31
35
|
"build": "tsup --config tsup.config.ts --tsconfig tsconfig.build.json",
|
|
32
36
|
"dev": "tsup --config tsup.config.ts --tsconfig tsconfig.build.json --watch",
|
|
33
|
-
"type-check": "tsc --noEmit",
|
|
34
|
-
"prepublishOnly": "npm run type-check && npm run build"
|
|
37
|
+
"type-check": "tsc --noEmit -p tsconfig.tests.json",
|
|
38
|
+
"prepublishOnly": "npm run type-check && npm run build",
|
|
39
|
+
"test": "jest"
|
|
35
40
|
},
|
|
36
41
|
"dependencies": {
|
|
37
42
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
@@ -41,7 +46,10 @@
|
|
|
41
46
|
"devDependencies": {
|
|
42
47
|
"@types/ws": "^8.5.10",
|
|
43
48
|
"tsup": "^8.0.0",
|
|
44
|
-
"typescript": "^5.2.2"
|
|
49
|
+
"typescript": "^5.2.2",
|
|
50
|
+
"@types/jest": "^29.5.5",
|
|
51
|
+
"jest": "^29.7.0",
|
|
52
|
+
"ts-jest": "^29.1.1"
|
|
45
53
|
},
|
|
46
54
|
"keywords": [
|
|
47
55
|
"oimdb",
|
package/ui/app.js
CHANGED
|
@@ -324,7 +324,7 @@ function buildCompRow(name, info) {
|
|
|
324
324
|
|
|
325
325
|
function renderHistory(history) {
|
|
326
326
|
if (!history.length) {
|
|
327
|
-
listHistory.innerHTML = '<div class="empty">No flushes recorded yet.<br>Call <code>
|
|
327
|
+
listHistory.innerHTML = '<div class="empty">No flushes recorded yet.<br>Call <code>oimDevRegistry.trackFlushes(...)</code> in debug.ts.</div>';
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
330
330
|
listHistory.innerHTML = '';
|
package/ui/index.html
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div class="waiting-card">
|
|
31
31
|
<div class="waiting-title">Waiting for browser</div>
|
|
32
32
|
<p>Open your app and make sure <code>debug.ts</code> calls:</p>
|
|
33
|
-
<pre>
|
|
33
|
+
<pre>oimDevRegistry.connect(); // ws://localhost:7432</pre>
|
|
34
34
|
<p class="waiting-hint">Then reload the page.</p>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|