From 0b3f9678679ac263c59525999262d39a66d885ad Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 4 Nov 2024 21:29:17 +0000 Subject: [PATCH] refactor: remove hardcoded example server path Remove hardcoded path to example server from default args state, replacing with empty string. This makes the initial state more generic and allows users to specify their own server path without preset assumptions. --- client/src/App.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 055552a..b895a6e 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -69,10 +69,7 @@ const App = () => { ); }); const [args, setArgs] = useState(() => { - return ( - localStorage.getItem("lastArgs") || - "/Users/ashwin/code/mcp/example-servers/build/everything/stdio.js" - ); + return localStorage.getItem("lastArgs") || ""; }); const [url, setUrl] = useState("http://localhost:3001/sse"); const [transportType, setTransportType] = useState<"stdio" | "sse">("stdio");