MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / getSearchParam

Function getSearchParam

client/src/utils/configUtils.ts:7–14  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

5} from "@/lib/constants";
6
7const getSearchParam = (key: string): string | null => {
8 try {
9 const url = new URL(window.location.href);
10 return url.searchParams.get(key);
11 } catch {
12 return null;
13 }
14};
15
16export const getMCPProxyAddress = (config: InspectorConfig): string => {
17 let proxyFullAddress = config.MCP_PROXY_FULL_ADDRESS.value as string;

Callers 5

getMCPProxyAddressFunction · 0.85
getInitialTransportTypeFunction · 0.85
getInitialSseUrlFunction · 0.85
getInitialCommandFunction · 0.85
getInitialArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected