AgentSensor MCP server
Commit 20. Okt. 2026Ermöglicht KI-Coding-Agents den Echtzeit-Zugriff auf Server- und Browser-Runtime-Errors, die direkt auf die exakten Quelldateien und Zeilennummern gemappt werden.
Auch bekannt als arif-js/agentsensor, agentsensor-mcp
- Stars
- 0
- Tools
- 4
- Downloads, 30 Tage
- —
- Neueste Version
- —
- Letzter Commit
- 20. Okt. 2026
- Lizenz
- MIT
Was ist AgentSensor MCP?
AgentSensor ist ein MCP server. Ermöglicht KI-Coding-Agents den Echtzeit-Zugriff auf Server- und Browser-Runtime-Errors, die direkt auf die exakten Quelldateien und Zeilennummern gemappt werden. Er stellt 4 Tools bereit, etwa get_runtime_errors, get_error_detail, check_fix.
Zusammenfassung generiert aus dem README des Projekts
Über AgentSensor MCP server
agentsensor ermöglicht es Entwicklern in den Node.js-, JavaScript- und TypeScript-Ökosystemen, KI-Coding-Agents direkten Einblick in Runtime-Crashes zu geben. Durch das Einpacken eines Development-Commands erfasst dieses Tool Backend-Exceptions, Bundler-Kompilierungsfehler und Frontend-Browser-Crashes von Frameworks wie Next.js, Vite und Remix. Es mappt diese Fehler auf die exakten Quelldateien und Zeilennummern, sodass das manuelle Kopieren und Einfügen zwischen Terminal und einem KI-Client entfällt.
Nutzer verbinden diesen Server über die Standard-MCP-Konfiguration mit Clients wie Claude Code, Cursor, Codex oder Antigravity. Das Setup ist komplett lokal und benötigt keine Cloud-Accounts oder Telemetrie. Es verwaltet Error-States über ein lokales Status-Board, sodass Agents verfolgen können, ob ein Bug noch offen oder bereits behoben ist. Über spezifische Tools wie get_runtime_errors und get_error_detail kann ein Agent Stack Traces und die dreißig Log-Zeilen vor einem Crash inspizieren, um präzise Fixes umzusetzen.
Was du damit machen kannst
- 1Verifizieren von BugfixesEin Entwickler kann einen KI-Agenten nutzen, um zu bestätigen, ob eine Code-Änderung einen zuvor gemeldeten Fehler tatsächlich behoben hat.
- 2Debugging von Frontend-KomponentenfehlernDas Tool erfasst React-Komponentenfehler und Browser-Exceptions, um Agents beim Debugging von Client-seitigen Problemen zu unterstützen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du AgentSensor MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenAgentSensor MCP in Claude Code installieren
$ claude mcp add agentsensor -- npx -y agentsensor-mcpAgentSensor MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"agentsensor": {
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}AgentSensor MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"agentsensor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}AgentSensor MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"agentsensor","type":"stdio","command":"npx","args":["-y","agentsensor-mcp"]}'AgentSensor MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"agentsensor": {
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}AgentSensor MCP in Codex installieren
$ codex mcp add agentsensor -- npx -y agentsensor-mcpAgentSensor MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.agentsensor] command = "npx" args = ["-y", "agentsensor-mcp"]
AgentSensor MCP in Gemini CLI installieren
$ gemini mcp add -s user agentsensor npx -- -y agentsensor-mcpAgentSensor MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"agentsensor": {
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}AgentSensor MCP tools 4
Erkannt aus dem READMEget_runtime_errorsget_error_detailcheck_fixresolve_error
| get_runtime_errors | — | |
| get_error_detail | — | |
| check_fix | — | |
| resolve_error | — |
Konfiguration
AUTO_TRIGGER
| Name | Beschreibung | Typ |
|---|---|---|
| AUTO_TRIGGER | — |
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Noch nicht verifiziert. Ein Server benötigt einen Score von 80, keine kritischen Befunde und genug Daten für unsere Prüfung. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbararif-js/agentsensor is public and reachablegithub.com/arif-js/agentsensor ↗Bestanden
- Paket nennt dieses Repository als Quelleagentsensor-mcp names arif-js/agentsensor as sourcenpmjs.com/package/agentsensor-mcp ↗Bestanden
- Build-Provenienz (Sigstore-Attestierung)No build attestation published for this releaseNicht geprüft
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-10-20github.com/arif-js/agentsensor ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from agentsensor-mcpBestanden
- Keine kritischen Advisories im Paket oder seinen AbhängigkeitenNicht geprüft
- Keine versteckten Anweisungen an das Modell4 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNo tool named like delete, drop or execBestanden
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenAgentSensor
Zero-config runtime & browser error sensor for AI coding agents.
Wrap your dev server with one command, then let Claude Code, Codex, Cursor, Antigravity, or any MCP client see the real crashes from your terminal and browser — mapped to the exact file and line, with zero copy-paste.
What it does · Supported stack · Demo · Quick start · MCP tools · How it works · Contributing
Status: pre-release (0.1). Expect rapid improvements before 1.0.
What it does
- ⚡ Zero code changes: wrap your existing dev script (
agentsensor run -- npm run dev). No SDK imports, no middleware, no config files. - 🌐 Captures both server and browser crashes: intercepts backend runtime exceptions, bundler compilation errors, and in-browser exceptions (
window.onerror,unhandledrejection, React component errors). - 🎯 Source-mapped to your real code: automatically enables
--enable-source-maps, strips monorepo runner prefixes, collapsesnode_modulesnoise, and maps browser URLs back to exact workspace files. - 📋 Live
openvsresolvedstatus board: maintains.agentsensor/status.jsonso fixed errors from earlier sessions never confuse the agent — while automatically reopening an error if it ever happens again. - 🤖 Automatic agent triggering: sends MCP server instructions so connected agents check
get_runtime_errorsfirst whenever you report a bug or crash. - 🔒 100% local: no accounts, no cloud, no telemetry, no background daemons.
AgentSensor doesn't guess fixes — it gives your coding agent the exact runtime reality (error type, message, source-mapped file:line:column, and the 30 log lines leading up to the crash) so the agent fixes the real bug on the first try.
Supported stack
AgentSensor currently supports the Node.js, JavaScript, and TypeScript ecosystem:
| Layer | Supported | Details |
|---|---|---|
| Runtimes | Node.js (>=18.17) | JavaScript & TypeScript |
| Frontend & SSR | Next.js, Vite, Remix, Storybook | Dev server builds & browser crashes (window.onerror, unhandledrejection, React console.error) |
| Backend | Express, Fastify, NestJS, Koa, Node CLI scripts | V8 exceptions, unhandled promise rejections, source-mapped stack traces |
| Compilers & Bundlers | tsc, Turbopack, Webpack, esbuild, Babel |
Build-time errors, type errors, syntax crashes |
| Monorepos | pnpm, Turborepo, Nx |
Strips runner prefixes, maps local package paths |
[!NOTE] Non-Node runtimes (Python, Go, Rust): Not supported yet. Dedicated runtime hooks and stack trace parsers for these languages are planned for upcoming releases.
Demo
Run your dev server through agentsensor:
npx -y agentsensor-mcp run -- npm run dev
When your app or browser throws an error, just talk to your assistant naturally:
You: The checkout page just crashed — fix it.
Claude: (calls
get_runtime_errors→get_error_detail) FoundOPENerror[9e84385bb1]:TypeError: Cannot read properties of undefined (reading 'code')atsrc/checkout/total.ts:17:38. I added a guard for optionalcouponincalculateTotalCentsand calledcheck_fix— error[9e84385bb1]is now markedresolvedin.agentsensor/status.json.
Who it's for
- Developers using AI coding agents: stop acting as the manual copy-paste bridge between terminal errors, Chrome DevTools, and chat windows (Claude Code, Codex, Antigravity, Cursor, Windsurf, Copilot).
- Full-stack teams: catch backend route crashes and frontend React component render errors in one unified stream.
- Monorepo teams: automatic workspace root detection and sub-package path resolution out of the box.
Quick start
1. Run your dev server with agentsensor
Prefix your normal dev command with npx -y agentsensor-mcp run -- (or install globally with npm i -g agentsensor-mcp and use agentsensor run --):
npx -y agentsensor-mcp run -- npm run dev
Your terminal output and colors stay completely unchanged, and .agentsensor/ is automatically added to .gitignore.
2. Connect your AI coding agent (one-time setup)
Claude Code
claude mcp add agentsensor -- npx -y agentsensor-mcp
OpenAI Codex (~/.codex/config.toml)
[mcp_servers.agentsensor]
command = "npx"
args = ["-y", "agentsensor-mcp"]
Antigravity / Cursor / Windsurf / GitHub Copilot (mcp_config.json)
{
"mcpServers": {
"agentsensor": {
"command": "npx",
"args": ["-y", "agentsensor-mcp"]
}
}
}
3. Trigger a bug and ask your agent
Ask your agent:
"Fix the error I just hit."
MCP tools
| Tool | Parameters | Description |
|---|---|---|
get_runtime_errors |
since_minutes?, limit? (default 10), all_sessions?, include_resolved?, project? |
Returns active OPEN errors from the current dev session (or last 24h), grouped by stack signature with error_id, file:line:column, occurrence count, and timestamps. |
get_error_detail |
error_id, project? |
Returns the full source-mapped stack trace (user [app] frames highlighted, node_modules frames collapsed), the ~30 log lines before the crash, and the command/browser URL. |
check_fix |
error_id, since?, project? |
Checks whether error_id recurred after a code edit. Reports still_failing or not_seen (and moves the error from open to resolved in .agentsensor/status.json). |
resolve_error |
error_id?, project? |
Explicitly marks a specific error_id (or all currently open errors) as resolved in .agentsensor/status.json. Automatically reopens if triggered again. |
How it works
flowchart LR
Dev["agentsensor run -- npm run dev"] -->|"Terminal stream + Browser hook"| Parser["Stack Trace & Bundler Parser"]
Parser -->|"Dedupe & sync"| Store[".agentsensor/status.json + errors.jsonl"]
Store -->|"Read"| MCP["agentsensor-mcp (stdio)"]
MCP <-->|"MCP Tools"| Agent["Claude Code / Codex / Antigravity / Cursor"]
- Terminal + Browser Capture:
agentsensor runspawns your dev command with--enable-source-mapsand a lightweight preload hook (agentsensor-mcp/register). It watchesstdout/stderrfor server/bundler errors and automatically injects a tiny listener into/@vite/clientand Next.js dev chunks to catch browser crashes (window.onerror,unhandledrejection, Reactconsole.error) viaPOST /__agentsensoron the same dev server port. - Line-Number-Independent Fingerprinting: Errors are hashed by error type, normalized message, and top app file/function (excluding line numbers so signatures stay stable even after the agent edits the file).
- Live Status Board (
.agentsensor/status.json): Every error starts inopen. When the agent fixes the code and runscheck_fix(orresolve_error), the error moves toresolved. If that error ever fires again later, it automatically moves back toopen. - Multi-Project Root Resolution:
agentsensor-mcplocates the right.agentsensor/directory using MCP client workspaceroots, the--projectflag /AGENTSENSOR_PROJECTenv var, or by walking up from the current working directory.
Try the included broken app
Clone the repo and run the planted-bug demo server:
git clone https://github.com/arif-js/agentsensor.git
cd agentsensor
npm install && npm run build
AUTO_TRIGGER=1 node dist/cli.js run -- npx tsx examples/broken-app/server.ts
Then ask your MCP-connected agent: "Check runtime errors and fix the bug in examples/broken-app/server.ts."
Contributing
Issues and pull requests are welcome! Before submitting a PR:
npm run lint
npm run typecheck
npm test
npm run build
License
AgentSensor MCP Fragen
Wie füge ich AgentSensor MCP zu Claude Code hinzu?
Führe claude mcp add agentsensor -- npx -y agentsensor-mcp in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich AgentSensor MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Welche Tools bietet AgentSensor MCP?
Er stellt 4 Tools bereit, darunter get_runtime_errors, get_error_detail, check_fix, resolve_error.
Sind Code-Änderungen erforderlich, damit es funktioniert?
Nein, es funktioniert ohne jegliche Code-Änderungen, indem dein bestehendes Dev-Script eingekapselt wird.
Welche Runtimes werden unterstützt?
Aktuell werden das Node.js-, JavaScript- und TypeScript-Ökosystem unterstützt, einschließlich Frameworks wie Next.js, Vite und Remix.
Wird Python oder Go unterstützt?
Nein, Nicht-Node-Runtimes wie Python, Go und Rust werden noch nicht unterstützt, sind aber für zukünftige Releases geplant.
Werden meine Daten in die Cloud gesendet?
Nein, das Tool arbeitet zu 100 % lokal – ohne Accounts, ohne Cloud und ohne Telemetrie.