// normalizes the docstring in case the LLM decides not to generate proper comments
export function docify(docs: string) {
docs = parsers.unfence(docs, "*")
if (!/^\/\*\*.*.*\*\/$/s.test(docs))
docs = `/**\n* ${docs.split(/\r?\n/g).join("\n* ")}\n*/`
return docs.replace(/\n+$/, "")
}
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/microsoft/genaiscript'
If you have feedback or need assistance with the MCP directory API, please join our Discord server