Rocky_Mountain_Vending/.pnpm-store/v10/files/e7/20b2754ad75cf3609aa6470304754c73731f7610291176d9a6ef8521868abc2524baf3c241f2b76f841df69f012023184e7963a538e7dcce0a865f9558796c
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

20 lines
1.2 KiB
Text

/**
* MCP tool for retrieving error state from Next.js dev server.
*
* This tool provides comprehensive error reporting including:
* - Next.js global errors (e.g., next.config validation errors)
* - Browser runtime errors with source-mapped stack traces
* - Build errors from webpack/turbopack compilation
*
* For browser errors, it leverages the HMR infrastructure for server-to-browser communication.
*
* Flow:
* MCP client → server generates request ID → HMR message to browser →
* browser queries error overlay state → HMR response back → server performs source mapping →
* combined with global errors → formatted output.
*/
import type { McpServer } from 'next/dist/compiled/@modelcontextprotocol/sdk/server/mcp';
import type { OverlayState } from '../../../next-devtools/dev-overlay/shared';
import { type HmrMessageSentToBrowser } from '../../dev/hot-reloader-types';
export declare function registerGetErrorsTool(server: McpServer, sendHmrMessage: (message: HmrMessageSentToBrowser) => void, getActiveConnectionCount: () => number): void;
export declare function handleErrorStateResponse(requestId: string, errorState: OverlayState | null, url: string | undefined): void;