reset_cookies
Restore the cookie count to zero for testing purposes within the MCP Cookie Server, enabling users to reset the jar-based economy system and evaluate response quality reinforcement mechanisms.
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 handler function for the 'reset_cookies' tool. It calls the reset() method on the cookieStorage instance and returns a confirmation 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 ListTools response, including its name, description, and empty input schema.{ name: "reset_cookies", description: "Reset the cookie count back to zero (for testing purposes)", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:65-68 (helper)The reset() helper method in the CookieStorage class that resets the collected cookies to zero without affecting the jar.reset(): void { this.collectedCookies = 0; // Note: Don't reset jar cookies, only collected cookies }