Skip to main content
Glama
by Ritesh-sudo
assign-layer-names.js466 B
"use strict" module.exports = function (layer, node, state, options) { layer.forEach((layerPart, i) => { if (layerPart.trim() === "") { if (options.nameLayer) { layer[i] = options .nameLayer(state.anonymousLayerCounter++, state.rootFilename) .toString() } else { throw node.error( `When using anonymous layers in @import you must also set the "nameLayer" plugin option` ) } } }) }

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/Ritesh-sudo/MCPJobSearch'

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