MCPcopy Create free account
hub / github.com/cortexkit/magic-context / reset

Method reset

packages/e2e-tests/src/mock-provider/server.ts:145–150  ·  view source on GitHub ↗

Clear queue, captured requests, matchers, and default response.

()

Source from the content-addressed store, hash-verified

143
144 /** Clear queue, captured requests, matchers, and default response. */
145 reset(): void {
146 this.responses = [];
147 this.captured = [];
148 this.defaultResponse = null;
149 this.matchers = [];
150 }
151
152 private async handle(req: Request): Promise<Response> {
153 const url = new URL(req.url);

Calls

no outgoing calls

Tested by 6

captureTodoStateFunction · 0.36
primeNextTurnAsCacheBustFunction · 0.36
captureTodoStateFunction · 0.36
primeNextTurnAsCacheBustFunction · 0.36