// SPDX-FileCopyrightText: Copyright (c) 2025 Zerocracy
// SPDX-License-Identifier: MIT
// Replace all whitespace with a single space and remove spaces before punctuation
export const to_gpt = function(txt: string): string {
return txt
.replace(/\s+/g, ' ')
.replace(/ (\?|!|\|,|:)/g, '$1')
.trim();
}
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/zerocracy/zerocracy-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server