Skip to main content
Glama

Model Context Protocol Server

by hyen43
all-sync.js751 B
import {isUint8Array, concatUint8Arrays} from '../utils/uint-array.js'; import {stripNewline} from '../io/strip-newline.js'; // Retrieve `result.all` with synchronous methods export const getAllSync = ([, stdout, stderr], options) => { if (!options.all) { return; } if (stdout === undefined) { return stderr; } if (stderr === undefined) { return stdout; } if (Array.isArray(stdout)) { return Array.isArray(stderr) ? [...stdout, ...stderr] : [...stdout, stripNewline(stderr, options, 'all')]; } if (Array.isArray(stderr)) { return [stripNewline(stdout, options, 'all'), ...stderr]; } if (isUint8Array(stdout) && isUint8Array(stderr)) { return concatUint8Arrays([stdout, stderr]); } return `${stdout}${stderr}`; };

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/hyen43/mcpServer'

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