agentsensor-mcp

v0.1.1
agentsensor-mcp Checked 4 days ago Published 1 month ago

Your 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.

ParameterTypeDescription
all_sessionsbooleanSet true to include unresolved errors from older dev server sessions too.
include_resolvedbooleanSet true to include errors that were already marked resolved.
limitintegerMaximum number of unique errors to return (default 10).
projectstringOptional project directory path if different from the current workspace.
since_minutesnumberOnly 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.

ParameterTypeDescription
error_id *stringThe error ID from get_runtime_errors.
projectstringOptional 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).

ParameterTypeDescription
error_id *stringThe error ID to check.
projectstringOptional project directory path if different from the current workspace.
sincestringISO 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`.

ParameterTypeDescription
error_idstringSpecific error ID to resolve, or omit to resolve all currently open errors.
projectstringOptional project directory path if different from the current workspace.