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.
This commit is contained in:
David Soria Parra
2024-11-04 21:29:17 +00:00
parent 752631f5a1
commit 0b3f967867

View File

@@ -69,10 +69,7 @@ const App = () => {
);
});
const [args, setArgs] = useState<string>(() => {
return (
localStorage.getItem("lastArgs") ||
"/Users/ashwin/code/mcp/example-servers/build/everything/stdio.js"
);
return localStorage.getItem("lastArgs") || "";
});
const [url, setUrl] = useState<string>("http://localhost:3001/sse");
const [transportType, setTransportType] = useState<"stdio" | "sse">("stdio");