Skip to main content
Glama
transport-uses-pino-config.js820 B
'use strict' const build = require('pino-abstract-transport') const { pipeline, Transform } = require('node:stream') module.exports = () => { return build(function (source) { const myTransportStream = new Transform({ autoDestroy: true, objectMode: true, transform (chunk, enc, cb) { const { time, level, [source.messageKey]: body, [source.errorKey]: error, ...attributes } = chunk this.push(JSON.stringify({ severityText: source.levels.labels[level], body, attributes, ...(error && { error }) })) cb() } }) pipeline(source, myTransportStream, () => {}) return myTransportStream }, { enablePipelining: true, expectPinoConfig: true }) }

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