#!/usr/bin/env node
import { fileURLToPath as __fileURLToPath } from 'url';
import { dirname as __pathDirname } from 'path';
const __filename = __fileURLToPath(import.meta.url);
const __dirname = __pathDirname(__filename);
import { BrowserMCPIntegration } from "../features/browser/browser-mcp.js";
async function testBrowserMCP() {
  console.log("Testing Browser MCP Integration...\n");
  const browser = new BrowserMCPIntegration({
    headless: false,
    // Show browser for testing
    defaultViewport: { width: 1280, height: 720 }
  });
  await browser.initialize();
  console.log("Browser MCP initialized successfully!");
  console.log("\nAvailable tools:");
  console.log("  - browser_navigate");
  console.log("  - browser_screenshot");
  console.log("  - browser_click");
  console.log("  - browser_type");
  console.log("  - browser_evaluate");
  console.log("  - browser_wait");
  console.log("  - browser_get_content");
  console.log("  - browser_close");
  console.log("\nBrowser MCP is ready to use with StackMemory!");
  await browser.cleanup();
  process.exit(0);
}
testBrowserMCP().catch((error) => {
  console.error("Browser MCP test failed:", error);
  process.exit(1);
});
//# sourceMappingURL=browser-test.js.map
