Skip to main content
Glama

GitMCP

urlUtils.ts305 B
export function removeLeadingUnderscore(url: string) { const urlObj = new URL(url); let pathname = urlObj.pathname; // remove leading /_/ pathname = pathname.slice(2); const urlObjWithoutLeadingUnderscore = new URL(pathname, urlObj.origin); return urlObjWithoutLeadingUnderscore.toString(); }

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/idosal/git-mcp'

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