Skip to main content
Glama
MIT License
25
89
  • Linux
  • Apple
booleanParserExt.js489 B
export default function boolParserExt(val){ if(isArray(val)){ for (let i = 0; i < val.length; i++) { val[i] = parse(val[i]) } }else{ val = parse(val) } return val; } function parse(val){ if (typeof val === 'string') { const temp = val.toLowerCase(); if(temp === 'true' || temp ==="yes" || temp==="1") return true; else if(temp === 'false' || temp ==="no" || temp==="0") return false; } return val; }

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/DMontgomery40/pentest-mcp'

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