import LocalStackMemoryMCP from "./server";
async function testTraceIntegration() {
  console.log("\u{1F9EA} Testing Trace Detection in MCP Server\n");
  const mockServer = {
    setRequestHandler: () => {
    },
    connect: () => Promise.resolve()
  };
  const MCPClass = LocalStackMemoryMCP;
  const mcp = new MCPClass();
  console.log("\u{1F4CB} Simulating tool calls:");
  const baseTime = Date.now();
  mcp.traceDetector.addToolCall({
    id: "1",
    tool: "get_context",
    timestamp: baseTime,
    arguments: { query: "authentication" }
  });
  console.log("  \u2713 Added get_context");
  mcp.traceDetector.addToolCall({
    id: "2",
    tool: "add_decision",
    timestamp: baseTime + 1e3,
    arguments: { content: "Use JWT tokens", type: "decision" }
  });
  console.log("  \u2713 Added add_decision");
  mcp.traceDetector.addToolCall({
    id: "3",
    tool: "start_frame",
    timestamp: baseTime + 2e3,
    arguments: { name: "implement-auth" }
  });
  console.log("  \u2713 Added start_frame");
  mcp.traceDetector.flush();
  const stats = await mcp.handleGetTraceStatistics({});
  console.log("\n\u{1F4CA} Trace Statistics:");
  console.log(stats.content[0].text);
  const traces = await mcp.handleGetTraces({ limit: 10 });
  console.log("\n\u{1F4DD} Detected Traces:");
  console.log(traces.content[0].text);
  console.log("\n\u2705 MCP Trace Integration Test Complete!");
}
testTraceIntegration().catch(console.error);
//# sourceMappingURL=trace-test.js.map
