import _ from './underscore.js';
import isArray from './isArray.js';
// Normalize a (deep) property `path` to array.
// Like `_.iteratee`, this function can be customized.
export default function toPath(path) {
return isArray(path) ? path : [path];
}
_.toPath = toPath;
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/GongRzhe/JSON-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server