Skip to main content
Glama
worker-pipeline.js369 B
'use strict' const { pipeline, PassThrough } = require('stream') module.exports = async function ({ targets }) { const streams = await Promise.all(targets.map(async (t) => { const fn = require(t.target) const stream = await fn(t.options) return stream })) const stream = new PassThrough() pipeline(stream, ...streams, () => {}) return stream }

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