Skip to main content
Glama

Superjolt MCP Server

by scoritz
update.command.ts1.16 kB
import { Command, CommandRunner, Option } from 'nest-commander'; import { Injectable } from '@nestjs/common'; import { UpdateService } from '../services/update.service'; import { LoggerService } from '../services/logger.service'; interface UpdateOptions { check?: boolean; } @Injectable() @Command({ name: 'update', description: 'Update Superjolt CLI to the latest version', }) export class UpdateCommand extends CommandRunner { constructor( private readonly updateService: UpdateService, private readonly logger: LoggerService, ) { super(); } async run(passedParams: string[], options: UpdateOptions): Promise<void> { try { if (options.check) { // Just check for updates, don't install await this.updateService.checkForUpdates(true); } else { // Perform manual update await this.updateService.manualUpdate(); } } catch (error: any) { this.logger.error(`\n${error.message}`); process.exit(1); } } @Option({ flags: '-c, --check', description: 'Only check for updates without installing', }) parseCheck(): boolean { return true; } }

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