Skip to main content
Glama
log-exit.js•530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LogExit = void 0; /** * Logs the exit code/signal of commands. */ class LogExit { logger; constructor({ logger }) { this.logger = logger; } handle(commands) { commands.forEach((command) => command.close.subscribe(({ exitCode }) => { this.logger.logCommandEvent(`${command.command} exited with code ${exitCode}`, command); })); return { commands }; } } exports.LogExit = LogExit;

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/samihalawa/brevo-mcp'

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