// Enforce ~50KB total JSON payload cap. We measure serialized size of CallToolResult.
// Provide helpers to iteratively trim content according to spec order.
export function jsonSizeBytes (obj: any): number {
return Buffer.byteLength(JSON.stringify(obj), 'utf8')
}
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/plasticbeachllc/dolphin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server