AgentSensor MCP server
2026년 10월 20일 커밋AI 코딩 에이전트에게 서버 및 브라우저 런타임 에러를 소스 파일과 정확한 라인 번호와 함께 실시간으로 제공합니다.
다른 이름 arif-js/agentsensor, agentsensor-mcp
- 스타
- 0
- Tools
- 4
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 10월 20일
- 라이선스
- MIT
AgentSensor MCP란?
AgentSensor은(는) MCP server입니다. AI 코딩 에이전트에게 서버 및 브라우저 런타임 에러를 소스 파일과 정확한 라인 번호와 함께 실시간으로 제공합니다. 4개 도구를 제공합니다. 예: get_runtime_errors, get_error_detail, check_fix.
프로젝트 README에서 생성된 요약
AgentSensor MCP server 정보
agentsensor는 Node.js, JavaScript, TypeScript 생태계에서 작업하는 개발자를 위해 AI 코딩 에이전트에게 런타임 크래시에 대한 직접적인 가시성을 제공합니다. 개발 명령어를 래핑함으로써 이 도구는 백엔드 예외, 번들러 컴파일 에러, 그리고 Next.js, Vite, Remix와 같은 프레임워크의 프론트엔드 브라우저 크래시를 캡처합니다. 이러한 에러를 정확한 소스 파일과 라인 번호에 매핑하여, 터미널과 AI 클라이언트 사이에서 수동으로 복사하여 붙여넣을 필요를 없애줍니다.
사용자는 표준 MCP 설정을 사용하여 이 MCP server를 Claude Code, Cursor, Codex 또는 Antigravity와 같은 클라이언트에 연결할 수 있습니다. 설정은 완전히 로컬에서 이루어지며 클라우드 계정이나 텔레메트리가 필요하지 않습니다. 로컬 상태 보드를 통해 에러 상태를 관리하므로 에이전트가 버그가 해결되었는지 또는 여전히 남아있는지 추적할 수 있습니다. get_runtime_errors 및 get_error_detail과 같은 특정 도구를 통해 에이전트는 스택 트레이스와 크래시 직전의 30개 로그 라인을 검사하여 정밀한 수정을 수행할 수 있습니다.
활용 사례
- 1버그 수정 검증개발자는 AI 에이전트를 통해 코드 변경 사항이 이전에 보고된 에러를 실제로 해결했는지 확인할 수 있습니다.
- 2프론트엔드 컴포넌트 에러 디버깅이 도구는 React 컴포넌트 에러와 브라우저 예외를 캡처하여 에이전트가 클라이언트 측 문제를 디버깅하는 것을 돕습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
AgentSensor MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 AgentSensor MCP 설치
$ claude mcp add agentsensor -- npx -y agentsensor-mcpCursor에 AgentSensor MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"agentsensor": {
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}VS Code에 AgentSensor MCP 설치
.vscode/mcp.json
{
"servers": {
"agentsensor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}VS Code CLI에 AgentSensor MCP 설치
$ code --add-mcp '{"name":"agentsensor","type":"stdio","command":"npx","args":["-y","agentsensor-mcp"]}'Claude Desktop에 AgentSensor MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"agentsensor": {
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}Codex에 AgentSensor MCP 설치
$ codex mcp add agentsensor -- npx -y agentsensor-mcpCodex config.toml에 AgentSensor MCP 설치
~/.codex/config.toml
[mcp_servers.agentsensor] command = "npx" args = ["-y", "agentsensor-mcp"]
Gemini CLI에 AgentSensor MCP 설치
$ gemini mcp add -s user agentsensor npx -- -y agentsensor-mcpGemini settings.json에 AgentSensor MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"agentsensor": {
"command": "npx",
"args": [
"-y",
"agentsensor-mcp"
]
}
}
}AgentSensor MCP 도구 4
README에서 감지됨get_runtime_errorsget_error_detailcheck_fixresolve_error
| get_runtime_errors | — | |
| get_error_detail | — | |
| check_fix | — | |
| resolve_error | — |
구성
AUTO_TRIGGER
| 이름 | 설명 | 유형 |
|---|---|---|
| AUTO_TRIGGER | — |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능arif-js/agentsensor is public and reachablegithub.com/arif-js/agentsensor ↗통과
- 패키지가 이 저장소를 소스로 명시agentsensor-mcp names arif-js/agentsensor as sourcenpmjs.com/package/agentsensor-mcp ↗통과
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-10-20github.com/arif-js/agentsensor ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from agentsensor-mcp통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음4 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기AgentSensor
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 질문
AgentSensor MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add agentsensor -- npx -y agentsensor-mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
AgentSensor MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
AgentSensor MCP는 어떤 도구를 제공하나요?
4개 도구를 제공합니다. 예: get_runtime_errors, get_error_detail, check_fix, resolve_error.
작동을 위해 코드 수정이 필요한가요?
아니요, 기존 개발 스크립트를 래핑하는 방식으로 코드 수정 없이 작동합니다.
어떤 런타임을 지원하나요?
현재 Next.js, Vite, Remix와 같은 프레임워크를 포함하여 Node.js, JavaScript, TypeScript 생태계를 지원합니다.
Python이나 Go도 지원하나요?
아니요, Python, Go, Rust와 같은 비 Node 런타임은 아직 지원하지 않지만 향후 출시될 예정입니다.
데이터가 클라우드로 전송되나요?
아니요, 이 도구는 계정, 클라우드, 텔레메트리 없이 100% 로컬에서 작동합니다.