Skip to main content
Glama

mcp-google-sheets

test-step-utils.ts758 B
function formatErrorMessage(errorMessage: string): string { const errorMessages = errorMessage.split('Error:'); if (errorMessages.length < 2) { return errorMessage; } const errorMessagesWithoutWhiteSpaces = errorMessages .map((message) => message.trim().replace(/^\n+|\n+$/g, '')) .filter((message) => message !== ''); const indentationStep = ' '; return errorMessagesWithoutWhiteSpaces.reduce((acc, current, index) => { const indentation = indentationStep.repeat(index); const errorLabel = errorMessagesWithoutWhiteSpaces.length === 1 ? 'Error' : `Error ${index + 1}`; return `${acc}${indentation}${errorLabel}: ${current}\n`; }, ''); } export const testStepUtils = { formatErrorMessage, };

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/activepieces/activepieces'

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