Skip to main content
Glama
log-error.js•744 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LogError = void 0; /** * Logs when commands failed executing, e.g. due to the executable not existing in the system. */ class LogError { logger; constructor({ logger }) { this.logger = logger; } handle(commands) { commands.forEach((command) => command.error.subscribe((event) => { this.logger.logCommandEvent(`Error occurred when executing command: ${command.command}`, command); const errorText = String(event instanceof Error ? event.stack || event : event); this.logger.logCommandEvent(errorText, command); })); return { commands }; } } exports.LogError = LogError;

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