We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/devops-vesi/devops-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
normalize-trailing-slashes.js•292 B
function normalizeTrailingSlashes(path) {
let i = path.length;
if (i === 0) {
return "/";
}
while (i > 0) {
if (path.charCodeAt(--i) !== 47) {
break;
}
}
if (i === -1) {
return "/";
}
return path.slice(0, i + 1);
}
export {
normalizeTrailingSlashes
};