neuron-inspector 0.1.0 → 0.1.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/README.md +236 -0
- package/dist/server.js +1 -1
- package/package.json +18 -5
package/README.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# neuron-inspector
|
|
2
|
+
|
|
3
|
+
**51 browser tools for AI agents.** Your AI can't see your browser. This fixes that.
|
|
4
|
+
|
|
5
|
+
Inspect DOM, automate clicks, run JavaScript, search network traffic, audit security, check accessibility, scan SEO, mock APIs, extract structured data, record demos — all from Claude Code, Cursor, Windsurf, or any MCP client.
|
|
6
|
+
|
|
7
|
+
No API keys. No cloud. Runs on localhost.
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/neuron-inspector)
|
|
10
|
+
[](https://opensource.org/licenses/MIT)
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx neuron-inspector
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Get started
|
|
19
|
+
|
|
20
|
+
### 1. Install the Chrome extension
|
|
21
|
+
|
|
22
|
+
Download from **[neuron.ng/extension](https://neuron.ng/extension)** and sideload:
|
|
23
|
+
|
|
24
|
+
1. Download and extract the zip
|
|
25
|
+
2. Open `chrome://extensions` and enable **Developer Mode**
|
|
26
|
+
3. Click **Load unpacked** and select the extracted folder
|
|
27
|
+
4. The extension icon appears in your toolbar
|
|
28
|
+
|
|
29
|
+
### 2. Connect to your AI tool
|
|
30
|
+
|
|
31
|
+
**Claude Code:**
|
|
32
|
+
```bash
|
|
33
|
+
claude mcp add neuron-inspector -- npx neuron-inspector
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Cursor** — add to `.cursor/mcp.json`:
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"mcpServers": {
|
|
40
|
+
"neuron-inspector": {
|
|
41
|
+
"command": "npx",
|
|
42
|
+
"args": ["neuron-inspector"]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Windsurf** — add to `~/.codeium/windsurf/mcp_config.json`:
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"mcpServers": {
|
|
52
|
+
"neuron-inspector": {
|
|
53
|
+
"command": "npx",
|
|
54
|
+
"args": ["neuron-inspector"]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 3. Use it
|
|
61
|
+
|
|
62
|
+
Open any page in Chrome. Ask your AI agent to interact with it. Done.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## What you can do
|
|
67
|
+
|
|
68
|
+
### Ask your agent to debug a page
|
|
69
|
+
|
|
70
|
+
> "Why is this page slow?"
|
|
71
|
+
|
|
72
|
+
The agent calls `neuron_perf_snapshot` and gets back Core Web Vitals, render-blocking scripts, memory usage, and the heaviest resources.
|
|
73
|
+
|
|
74
|
+
> "Check this page for security issues"
|
|
75
|
+
|
|
76
|
+
`neuron_security_scan` finds leaked API keys in inline scripts, missing CSP headers, mixed content, insecure forms, exposed source maps.
|
|
77
|
+
|
|
78
|
+
> "Is this page accessible?"
|
|
79
|
+
|
|
80
|
+
`neuron_a11y_audit` runs a WCAG audit — color contrast failures, missing alt text, broken heading hierarchy, unlabeled form fields.
|
|
81
|
+
|
|
82
|
+
### Ask your agent to explore traffic
|
|
83
|
+
|
|
84
|
+
> "What APIs is this SPA calling?"
|
|
85
|
+
|
|
86
|
+
`neuron_discover_apis` maps every endpoint from observed traffic — call counts, status codes, auth patterns, response shapes.
|
|
87
|
+
|
|
88
|
+
> "Search all network responses for 'user_id'"
|
|
89
|
+
|
|
90
|
+
`neuron_search_traffic` does full-text search across every captured response body.
|
|
91
|
+
|
|
92
|
+
> "Show me the network waterfall"
|
|
93
|
+
|
|
94
|
+
`neuron_waterfall` gives DNS, TCP, TLS, TTFB timing per resource — the same view as DevTools Network, but in your agent's context.
|
|
95
|
+
|
|
96
|
+
### Ask your agent to interact with the page
|
|
97
|
+
|
|
98
|
+
> "Click the Sign Up button"
|
|
99
|
+
|
|
100
|
+
`neuron_click` finds it by CSS selector or visible text and clicks it.
|
|
101
|
+
|
|
102
|
+
> "Fill in the email field with test@example.com"
|
|
103
|
+
|
|
104
|
+
`neuron_type` targets the input and types into it.
|
|
105
|
+
|
|
106
|
+
> "Scroll down and extract all the product listings"
|
|
107
|
+
|
|
108
|
+
`neuron_scroll` + `neuron_extract_data` — scrolls the page and pulls structured data from repeating patterns (cards, tables, feeds).
|
|
109
|
+
|
|
110
|
+
### Ask your agent to test edge cases
|
|
111
|
+
|
|
112
|
+
> "Mock the payments API to return a 500 error"
|
|
113
|
+
|
|
114
|
+
`neuron_set_mock` intercepts matching requests and returns your custom response. Test error states without touching the real backend.
|
|
115
|
+
|
|
116
|
+
> "Take a snapshot, click submit, then tell me what changed"
|
|
117
|
+
|
|
118
|
+
`neuron_snapshot_state` before, action, `neuron_diff_states` after — detects DOM changes, added/removed elements, URL changes.
|
|
119
|
+
|
|
120
|
+
### Ask your agent to record and replay
|
|
121
|
+
|
|
122
|
+
> "Record what I'm doing as a workflow"
|
|
123
|
+
|
|
124
|
+
`neuron_start_recording` captures clicks, typing, and navigation. `neuron_start_demo` replays it as a polished video with chapter markers and cursor overlay.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## All 51 tools
|
|
129
|
+
|
|
130
|
+
### Inspect & Debug
|
|
131
|
+
| Tool | What it does |
|
|
132
|
+
|------|-------------|
|
|
133
|
+
| `neuron_query_dom` | DOM snapshot of the page or a subtree |
|
|
134
|
+
| `neuron_find_elements` | Find elements by CSS selector or visible text |
|
|
135
|
+
| `neuron_evaluate_js` | Run JavaScript in page context |
|
|
136
|
+
| `neuron_get_logs` | Console logs filtered by level, tab, search |
|
|
137
|
+
| `neuron_screenshot` | PNG screenshot of the visible area |
|
|
138
|
+
| `neuron_diagnose` | Connection health check |
|
|
139
|
+
| `neuron_list_tabs` | Open tabs with platform detection |
|
|
140
|
+
|
|
141
|
+
### Browse & Automate
|
|
142
|
+
| Tool | What it does |
|
|
143
|
+
|------|-------------|
|
|
144
|
+
| `neuron_click` | Click by selector or text |
|
|
145
|
+
| `neuron_type` | Type into inputs and contenteditable |
|
|
146
|
+
| `neuron_scroll` | Scroll by pixels or into view |
|
|
147
|
+
| `neuron_navigate` | Navigate to a URL |
|
|
148
|
+
| `neuron_open_tab` | Open a new tab |
|
|
149
|
+
| `neuron_reload` | Reload a tab |
|
|
150
|
+
| `neuron_run_sequence` | Multi-step automation (click, type, wait, eval) |
|
|
151
|
+
|
|
152
|
+
### Network Intelligence
|
|
153
|
+
| Tool | What it does |
|
|
154
|
+
|------|-------------|
|
|
155
|
+
| `neuron_get_requests` | Query HTTP requests by tab, method, status, URL |
|
|
156
|
+
| `neuron_get_errors` | Recent 4xx/5xx and console errors |
|
|
157
|
+
| `neuron_get_ws_frames` | WebSocket and SSE frame history |
|
|
158
|
+
| `neuron_export_har` | Export as HAR 1.2 |
|
|
159
|
+
| `neuron_search_traffic` | Full-text search across response bodies |
|
|
160
|
+
| `neuron_discover_apis` | Auto-map API endpoints from traffic |
|
|
161
|
+
| `neuron_replay_request` | Re-fire a request with the browser's live session |
|
|
162
|
+
| `neuron_waterfall` | DNS/TLS/TTFB timing per resource |
|
|
163
|
+
|
|
164
|
+
### Security
|
|
165
|
+
| Tool | What it does |
|
|
166
|
+
|------|-------------|
|
|
167
|
+
| `neuron_security_scan` | Leaked secrets, missing headers, CORS, mixed content |
|
|
168
|
+
| `neuron_check_auth` | Verify platform credentials |
|
|
169
|
+
| `neuron_detect_blocker` | Detect rate limits, captchas, login walls |
|
|
170
|
+
|
|
171
|
+
### Quality
|
|
172
|
+
| Tool | What it does |
|
|
173
|
+
|------|-------------|
|
|
174
|
+
| `neuron_a11y_audit` | WCAG audit — contrast, labels, headings, tabindex |
|
|
175
|
+
| `neuron_perf_snapshot` | Core Web Vitals, resource breakdown, memory |
|
|
176
|
+
| `neuron_seo_audit` | Meta, OG, headings, structured data, links |
|
|
177
|
+
|
|
178
|
+
### Network Mocking
|
|
179
|
+
| Tool | What it does |
|
|
180
|
+
|------|-------------|
|
|
181
|
+
| `neuron_set_mock` | Intercept requests, return custom responses |
|
|
182
|
+
| `neuron_get_mocks` | List active mock rules |
|
|
183
|
+
| `neuron_clear_mocks` | Remove all mocks |
|
|
184
|
+
|
|
185
|
+
### Cookies & Storage
|
|
186
|
+
| Tool | What it does |
|
|
187
|
+
|------|-------------|
|
|
188
|
+
| `neuron_get_cookies` | Read cookies for a URL |
|
|
189
|
+
| `neuron_set_cookie` | Set a cookie |
|
|
190
|
+
| `neuron_delete_cookie` | Delete a cookie |
|
|
191
|
+
| `neuron_get_storage` | Read localStorage / sessionStorage |
|
|
192
|
+
| `neuron_clear_storage` | Clear storage |
|
|
193
|
+
|
|
194
|
+
### Page Monitoring
|
|
195
|
+
| Tool | What it does |
|
|
196
|
+
|------|-------------|
|
|
197
|
+
| `neuron_snapshot_state` | Capture page state for later diff |
|
|
198
|
+
| `neuron_diff_states` | Compare two snapshots |
|
|
199
|
+
| `neuron_watch_element` | Watch a selector for changes |
|
|
200
|
+
| `neuron_get_watches` | Check accumulated changes |
|
|
201
|
+
| `neuron_stop_watch` | Stop watching |
|
|
202
|
+
| `neuron_extract_data` | Extract structured data from feeds, tables, listings |
|
|
203
|
+
|
|
204
|
+
### Demo Recording
|
|
205
|
+
| Tool | What it does |
|
|
206
|
+
|------|-------------|
|
|
207
|
+
| `neuron_start_recording` | Record interactions as a workflow |
|
|
208
|
+
| `neuron_stop_recording` | Save the recording |
|
|
209
|
+
| `neuron_list_workflows` | List saved workflows |
|
|
210
|
+
| `neuron_start_replay` | Replay a workflow |
|
|
211
|
+
| `neuron_stop_replay` | Stop replay |
|
|
212
|
+
| `neuron_start_demo` | Record a demo video with chapters + cursor |
|
|
213
|
+
| `neuron_workflow_status` | Engine state |
|
|
214
|
+
|
|
215
|
+
### Other
|
|
216
|
+
| Tool | What it does |
|
|
217
|
+
|------|-------------|
|
|
218
|
+
| `neuron_trigger_post` | Trigger the post runner |
|
|
219
|
+
| `neuron_session_diagnostics` | Agent session health |
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Requirements
|
|
224
|
+
|
|
225
|
+
- Node.js 18+
|
|
226
|
+
- Chrome or any Chromium browser
|
|
227
|
+
- [Neuron extension](https://neuron.ng/extension)
|
|
228
|
+
|
|
229
|
+
## Links
|
|
230
|
+
|
|
231
|
+
- **Extension download:** [neuron.ng/extension](https://neuron.ng/extension)
|
|
232
|
+
- **npm:** [npmjs.com/package/neuron-inspector](https://www.npmjs.com/package/neuron-inspector)
|
|
233
|
+
|
|
234
|
+
## License
|
|
235
|
+
|
|
236
|
+
MIT
|
package/dist/server.js
CHANGED
|
@@ -38,7 +38,7 @@ console.error(`[bridge] WebSocket server listening on 127.0.0.1:${PORT}`);
|
|
|
38
38
|
// ── MCP server (Claude Code / Cursor connects via stdio) ────
|
|
39
39
|
const mcp = new McpServer({
|
|
40
40
|
name: "neuron-inspector",
|
|
41
|
-
version: "0.1.
|
|
41
|
+
version: "0.1.2",
|
|
42
42
|
});
|
|
43
43
|
// Register all tools
|
|
44
44
|
for (const tool of TOOLS) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neuron-inspector",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "MCP server
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "51 browser tools for AI agents. Turn Chrome into an MCP server — inspect DOM, automate clicks, audit security, mock APIs, extract data, record demos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
7
7
|
"bin": {
|
|
@@ -21,16 +21,29 @@
|
|
|
21
21
|
"homepage": "https://neuron.ng/extension",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "https://github.com/conquext/neuron.git"
|
|
25
|
-
"directory": "packages/extension/bridge"
|
|
24
|
+
"url": "https://github.com/conquext/neuron-inspector.git"
|
|
26
25
|
},
|
|
27
26
|
"keywords": [
|
|
28
27
|
"neuron",
|
|
29
28
|
"mcp",
|
|
29
|
+
"mcp-server",
|
|
30
|
+
"model-context-protocol",
|
|
30
31
|
"chrome-extension",
|
|
31
32
|
"browser-tools",
|
|
33
|
+
"browser-automation",
|
|
32
34
|
"inspector",
|
|
33
|
-
"devtools"
|
|
35
|
+
"devtools",
|
|
36
|
+
"ai-agents",
|
|
37
|
+
"claude-code",
|
|
38
|
+
"cursor",
|
|
39
|
+
"windsurf",
|
|
40
|
+
"dom-inspector",
|
|
41
|
+
"security-audit",
|
|
42
|
+
"accessibility",
|
|
43
|
+
"seo-audit",
|
|
44
|
+
"network-mocking",
|
|
45
|
+
"web-scraping",
|
|
46
|
+
"browser-devtools"
|
|
34
47
|
],
|
|
35
48
|
"dependencies": {
|
|
36
49
|
"@modelcontextprotocol/sdk": "^1.0.0",
|