Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
fixllms.mjs756 B
import { readFile, readdir, writeFile } from "fs/promises" async function main() { const dir = "./dist/_llms-txt" const files = [ "./dist/llms-full.txt", "./dist/llms-small.txt", "./dist/llms.txt", ...(await readdir("./dist/_llms-txt")) .filter((f) => f.endsWith(".txt")) .map((f) => `./dist/_llms-txt/${f}`), ] for (const file of files) { const text = await readFile(file, "utf-8") const newText = text.replace( /^\!\[\]\(<data:image\/svg\+xml,.*$/gm, "<!-- mermaid diagram -->" ) if (text !== newText) { console.log(`Updating ${file}`) await writeFile(file, newText, "utf-8") } } } main()

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