reset_cookies
Clear all accumulated cookies to restore the initial state for testing scenarios in the MCP Cookie Server's reinforcement system.
Instructions
Reset the cookie count back to zero (for testing purposes)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:437-448 (handler)The switch case handler for the 'reset_cookies' tool. It calls cookieStorage.reset() to reset the collected cookies count and returns a confirmation text message.case "reset_cookies": { cookieStorage.reset(); return { content: [ { type: "text", text: "๐ Cookie count has been reset to 0. Time to start earning cookies again!", }, ], }; }
- src/index.ts:177-184 (registration)Registration of the 'reset_cookies' tool in the ListToolsRequestSchema handler. Includes the tool name, description, and empty input schema (no parameters required).{ name: "reset_cookies", description: "Reset the cookie count back to zero (for testing purposes)", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:65-68 (helper)Helper method 'reset()' in the CookieStorage class that resets only the collected cookies counter to zero, preserving the jar cookies. Called by the tool handler.reset(): void { this.collectedCookies = 0; // Note: Don't reset jar cookies, only collected cookies }