We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/larksuite/lark-openapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
parser-string-array.ts•288 B
export function parseStringArray(str?: string | string[]): string[] {
if (!str) {
return [];
}
if (typeof str === 'string') {
// split by comma or space and trim space
return str.split(/[,\s]+/).map((item) => item.trim());
}
return str.map((item) => item.trim());
}