Skip to main content
Glama
to-file-transport.ts346 B
import * as fs from 'node:fs' import { once } from 'node:events' async function run (opts: { destination?: fs.PathLike }): Promise<fs.WriteStream> { if (!opts.destination) throw new Error('kaboom') const stream = fs.createWriteStream(opts.destination, { encoding: 'utf8' }) await once(stream, 'open') return stream } export default 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