Skip to main content
Glama
transport-on-data.js471 B
'use strict' const build = require('../..') module.exports = async function (threadStreamOpts) { const { port, opts = {} } = threadStreamOpts return build( function (source) { source.on('data', function (line) { port.postMessage({ data: line, pinoConfig: { levels: source.levels, messageKey: source.messageKey, errorKey: source.errorKey } }) }) }, opts ) }

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