Skip to main content
Glama

Superjolt MCP Server

by scoritz
logout.command.ts922 B
import { Command, CommandRunner } from 'nest-commander'; import { Injectable } from '@nestjs/common'; import { AuthService } from '../services/auth.service'; import { LoggerService } from '../services/logger.service'; @Injectable() @Command({ name: 'logout', description: 'Log out from Superjolt', }) export class LogoutCommand extends CommandRunner { constructor( private readonly authService: AuthService, private readonly logger: LoggerService, ) { super(); } async run(): Promise<void> { try { const token = await this.authService.getToken(); if (!token) { this.logger.log('You are not logged in.'); return; } await this.authService.deleteToken(); this.logger.log('✅ Successfully logged out from Superjolt.'); } catch (error: any) { this.logger.error(`\nError logging out: ${error.message}`); process.exit(1); } } }

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/scoritz/superjolt'

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