()
| 59 | }; |
| 60 | |
| 61 | export const getInitialTransportType = (): |
| 62 | | "stdio" |
| 63 | | "sse" |
| 64 | | "streamable-http" => { |
| 65 | const param = getSearchParam("transport"); |
| 66 | if (param === "stdio" || param === "sse" || param === "streamable-http") { |
| 67 | return param; |
| 68 | } |
| 69 | return ( |
| 70 | (localStorage.getItem("lastTransportType") as |
| 71 | | "stdio" |
| 72 | | "sse" |
| 73 | | "streamable-http") || "stdio" |
| 74 | ); |
| 75 | }; |
| 76 | |
| 77 | export const getInitialSseUrl = (): string => { |
| 78 | const param = getSearchParam("serverUrl"); |
nothing calls this directly
no test coverage detected