Skip to main content
Glama
getMap.js557 B
import { Promise } from 'sander'; import getMapFromUrl from './getMapFromUrl.js'; import getSourceMappingUrl from './getSourceMappingUrl.js'; export default function getMap ( node, sourceMapByPath, sync ) { if ( node.file in sourceMapByPath ) { const map = sourceMapByPath[ node.file ]; return sync ? map : Promise.resolve( map ); } else { const url = getSourceMappingUrl( node.content ); if ( !url ) { node.isOriginalSource = true; return sync ? null : Promise.resolve( null ); } return getMapFromUrl( url, node.file, sync ); } }

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/MatheusgVentura/Project-One'

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