logout
Clear stored authentication tokens to securely end your session and protect account access on the todo management system.
Instructions
Logout and clear stored authentication token
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:739-754 (handler)The handler for the 'logout' tool. Deletes the stored authentication token file (.auth-token) if it exists and returns a confirmation message.case 'logout': { // Clear the stored token if (existsSync(TOKEN_FILE)) { const fs = await import('fs'); fs.unlinkSync(TOKEN_FILE); } return { content: [ { type: 'text', text: `✅ Logged out successfully! Your authentication token has been cleared.\n\nTo login again, use the "login" command.`, }, ], }; }
- src/server.ts:335-342 (registration)Registration of the 'logout' tool in the ListTools response, defining its name, description, and empty input schema.{ name: 'logout', description: 'Logout and clear stored authentication token', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:338-341 (schema)Input schema for the 'logout' tool, which requires no parameters (empty object).inputSchema: { type: 'object', properties: {}, },
- src/server.ts:369-376 (registration)Duplicate registration of the 'logout' tool (likely a copy-paste error).{ name: 'logout', description: 'Logout and clear stored authentication token', inputSchema: { type: 'object', properties: {}, }, },