UNPKG

@upstash/context7-mcp

Version:
5 lines (4 loc) • 201 B
export function mcpRouteFromUrl(url) { const pathname = new URL(url, "http://localhost").pathname.replace(/\/+$/, "").toLowerCase(); return pathname === "/mcp/oauth" ? "oauth" : "anonymous"; }