Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • 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: {}, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sholajegede/todo_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server