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

Function getInitialSseUrl

client/src/utils/configUtils.ts:77–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75};
76
77export const getInitialSseUrl = (): string => {
78 const param = getSearchParam("serverUrl");
79 if (param) return param;
80 return localStorage.getItem("lastSseUrl") || "http://localhost:3001/sse";
81};
82
83export const getInitialCommand = (): string => {
84 const param = getSearchParam("serverCommand");

Callers

nothing calls this directly

Calls 1

getSearchParamFunction · 0.85

Tested by

no test coverage detected