Kadxy 1 год назад
Родитель
Сommit
e95c94d7be
2 измененных файлов с 7 добавлено и 3 удалено
  1. 3 3
      app/components/mcp-market.tsx
  2. 4 0
      app/mcp/mcp_config.json

+ 3 - 3
app/components/mcp-market.tsx

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

+ 4 - 0
app/mcp/mcp_config.json

@@ -27,6 +27,10 @@
     "playwright": {
       "command": "npx",
       "args": ["-y", "@executeautomation/playwright-mcp-server"]
+    },
+    "gdrive": {
+      "command": "npx",
+      "args": ["-y", "@modelcontextprotocol/server-gdrive"]
     }
   }
 }