add support for streamable http server

This commit is contained in:
Shiv Deepak Muddada
2025-04-09 20:47:53 -07:00
parent a3a1ad47fa
commit 638603c0f3
4 changed files with 13 additions and 6 deletions

View File

@@ -79,9 +79,9 @@ const App = () => {
const [sseUrl, setSseUrl] = useState<string>(() => {
return localStorage.getItem("lastSseUrl") || "http://localhost:3001/sse";
});
const [transportType, setTransportType] = useState<"stdio" | "sse">(() => {
const [transportType, setTransportType] = useState<"stdio" | "sse" | "streamable-http">(() => {
return (
(localStorage.getItem("lastTransportType") as "stdio" | "sse") || "stdio"
(localStorage.getItem("lastTransportType") as "stdio" | "sse" | "streamable-http") || "stdio"
);
});
const [logLevel, setLogLevel] = useState<LoggingLevel>("debug");