Skip to main content
Glama
splitStream.jsโ€ข479 B
import { PassThrough } from "stream"; import { splitStream as splitWebStream } from "./splitStream.browser"; import { isBlob, isReadableStream } from "./stream-type-check"; export async function splitStream(stream) { if (isReadableStream(stream) || isBlob(stream)) { return splitWebStream(stream); } const stream1 = new PassThrough(); const stream2 = new PassThrough(); stream.pipe(stream1); stream.pipe(stream2); return [stream1, stream2]; }

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/consigcody94/office-whisperer'

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