Skip to main content
Glama
createReadStream-createWriteStream.js539 B
import * as fs from 'graceful-fs'; import { dirname } from 'path'; import mkdirp from 'mkdirp'; import resolvePathAndOptions from '../utils/resolvePathAndOptions'; export function createReadStream () { const { resolvedPath, options } = resolvePathAndOptions( arguments ); return fs.createReadStream( resolvedPath, options ); } export function createWriteStream () { const { resolvedPath, options } = resolvePathAndOptions( arguments ); mkdirp.sync( dirname( resolvedPath ) ); return fs.createWriteStream( resolvedPath, options ); }

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/MatheusgVentura/Project-One'

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