blowback-context
Version:
MCP server that integrates with FE development server for Cursor
16 lines (15 loc) • 772 B
TypeScript
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { HMREvent } from '../types/hmr.js';
import { ContextManager } from '../managers/context-manager.js';
export declare function registerBrowserTools(server: McpServer, contextManager: ContextManager, lastHMREvents: HMREvent[], screenshotHelpers?: {
addScreenshot: (imageData: string | Buffer, description: string, checkpointId: string | null, url?: string, browserContext?: {
browser_id?: string;
browser_type?: string;
session_id?: string;
}) => Promise<{
id: string;
resourceUri: string;
}>;
getScreenshotByPath: (url: string) => unknown;
getScreenshotUriFromPath: (path: string, withCacheId?: boolean) => string | null;
}): void;