/**
* Ensures that a URL has a trailing slash.
*/
export function ensureTrailingSlash(url: string) {
return url.endsWith('/') ? url : `${url}/`;
}
/**
* Ensures that a URL does not have a trailing slash.
*/
export function ensureNoTrailingSlash(url: string) {
return url.endsWith('/') ? url.slice(0, -1) : url;
}
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/supabase-community/mcp-supabase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server