Skip to main content
Glama
caller.js551 B
'use strict' function noOpPrepareStackTrace (_, stack) { return stack } module.exports = function getCallers () { const originalPrepare = Error.prepareStackTrace Error.prepareStackTrace = noOpPrepareStackTrace const stack = new Error().stack Error.prepareStackTrace = originalPrepare if (!Array.isArray(stack)) { return undefined } const entries = stack.slice(2) const fileNames = [] for (const entry of entries) { if (!entry) { continue } fileNames.push(entry.getFileName()) } return fileNames }

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/krtw00/search-mcp'

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