MCPcopy Index your code
hub / github.com/codeaashu/claude-code / unwrapCcrProxyUrl

Function unwrapCcrProxyUrl

src/services/mcp/config.ts:182–193  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

180 * rewritten proxy URL when both point at the same MCP server.
181 */
182export function unwrapCcrProxyUrl(url: string): string {
183 if (!CCR_PROXY_PATH_MARKERS.some(m => url.includes(m))) {
184 return url
185 }
186 try {
187 const parsed = new URL(url)
188 const original = parsed.searchParams.get('mcp_url')
189 return original || url
190 } catch {
191 return url
192 }
193}
194
195/**
196 * Compute a dedup signature for an MCP server config.

Callers 1

getMcpServerSignatureFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected