|
@@ -65,7 +65,7 @@ export function McpMarketPage() {
|
|
|
setIsLoading(false);
|
|
setIsLoading(false);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
- init();
|
|
|
|
|
|
|
+ init().then();
|
|
|
}, []);
|
|
}, []);
|
|
|
|
|
|
|
|
// 保存配置
|
|
// 保存配置
|
|
@@ -352,7 +352,7 @@ export function McpMarketPage() {
|
|
|
icon={<RestartIcon />}
|
|
icon={<RestartIcon />}
|
|
|
bordered
|
|
bordered
|
|
|
onClick={handleRestart}
|
|
onClick={handleRestart}
|
|
|
- text="Restart"
|
|
|
|
|
|
|
+ text="Restart All"
|
|
|
disabled={isLoading}
|
|
disabled={isLoading}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
@@ -458,7 +458,7 @@ export function McpMarketPage() {
|
|
|
{isServerAdded(server.id) && (
|
|
{isServerAdded(server.id) && (
|
|
|
<IconButton
|
|
<IconButton
|
|
|
icon={<EyeIcon />}
|
|
icon={<EyeIcon />}
|
|
|
- text="Detail"
|
|
|
|
|
|
|
+ text="Tools"
|
|
|
onClick={async () => {
|
|
onClick={async () => {
|
|
|
if (clientErrors[server.id] !== null) {
|
|
if (clientErrors[server.id] !== null) {
|
|
|
showToast("Server is not running");
|
|
showToast("Server is not running");
|