Skip to main content
Glama
to-file-on-final.js423 B
'use strict' const fs = require('fs') const { Writable } = require('stream') function run (opts) { let data = '' return new Writable({ autoDestroy: true, write (chunk, enc, cb) { data += chunk.toString() cb() }, final (cb) { setTimeout(function () { fs.writeFile(opts.dest, data, function (err) { cb(err) }) }, 100) } }) } module.exports = run

Latest Blog Posts

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/krtw00/search-mcp'

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