agentsensor-mcp
v0.1.1Your AI coding agent can finally see what your dev server sees.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_runtime_errors
ALWAYS CALL THIS TOOL FIRST whenever the user mentions an error, bug, crash, broken component/page, or asks you to fix/debug anything. Returns active OPEN runtime, bundler (Vite/Next.js/Storybook), TypeScript, and browser errors from the current dev session (or last 24h), grouped by signature with exact file:line locations.
| Parameter | Type | Description |
|---|---|---|
all_sessions | boolean | Set true to include unresolved errors from older dev server sessions too. |
include_resolved | boolean | Set true to include errors that were already marked resolved. |
limit | integer | Maximum number of unique errors to return (default 10). |
project | string | Optional project directory path if different from the current workspace. |
since_minutes | number | Only include errors seen within the last N minutes. |
get_error_detail
Call this immediately after `get_runtime_errors` to inspect an `error_id`. Returns the full source-mapped stack trace (user app frames highlighted, node_modules collapsed), preceding log lines, and the command/browser URL that produced it.
| Parameter | Type | Description |
|---|---|---|
error_id * | string | The error ID from get_runtime_errors. |
project | string | Optional project directory path if different from the current workspace. |
check_fix
ALWAYS call this after applying a code fix for an `error_id` to verify whether the error recurred in the running dev server or browser. Reports 'still_failing' if seen again, or 'not_seen' (and moves the error from 'open' to 'resolved' in .agentsensor/status.json).
| Parameter | Type | Description |
|---|---|---|
error_id * | string | The error ID to check. |
project | string | Optional project directory path if different from the current workspace. |
since | string | ISO timestamp marking when the fix was applied. If omitted, checks for occurrences newer than the previous latest occurrence. |
resolve_error
Explicitly marks an `error_id` (or all currently open errors if `error_id` is omitted) as resolved in `.agentsensor/status.json`. If the error ever occurs again later, it automatically moves back to `open`.
| Parameter | Type | Description |
|---|---|---|
error_id | string | Specific error ID to resolve, or omit to resolve all currently open errors. |
project | string | Optional project directory path if different from the current workspace. |