Quellcode durchsuchen

docs: how to disable mcp server (#543)

Co-authored-by: GitHub Action <[email protected]>
Timo Clasen vor 7 Monaten
Ursprung
Commit
986144b377
2 geänderte Dateien mit 8 neuen und 5 gelöschten Zeilen
  1. 3 3
      STATS.md
  2. 5 2
      packages/web/src/content/docs/docs/mcp-servers.mdx

+ 3 - 3
STATS.md

@@ -1,5 +1,5 @@
 # Download Stats
 # Download Stats
 
 
-| Date       | GitHub Downloads | npm Downloads    | Total            |
-| ---------- | ---------------- | ---------------- | ---------------- |
-| 2025-06-29 | 18,789 (+0)      | 39,420 (+0)      | 58,209 (+0)      |
+| Date       | GitHub Downloads | npm Downloads | Total       |
+| ---------- | ---------------- | ------------- | ----------- |
+| 2025-06-29 | 18,789 (+0)      | 39,420 (+0)   | 58,209 (+0) |

+ 5 - 2
packages/web/src/content/docs/docs/mcp-servers.mdx

@@ -26,14 +26,16 @@ Add a local MCP servers under `mcp.localmcp`.
     "localmcp": {
     "localmcp": {
       "type": "local",
       "type": "local",
       "command": ["bun", "x", "my-mcp-command"],
       "command": ["bun", "x", "my-mcp-command"],
+      "enabled": true,
       "environment": {
       "environment": {
         "MY_ENV_VAR": "my_env_var_value"
         "MY_ENV_VAR": "my_env_var_value"
-      }
     }
     }
   }
   }
 }
 }
 ```
 ```
 
 
+You can also disable a server by setting `enabled` to `false`. This is useful if you want to temporarily disable a server without removing it from your config.
+
 ### Remote
 ### Remote
 
 
 Add a remote MCP servers under `mcp.remotemcp`.
 Add a remote MCP servers under `mcp.remotemcp`.
@@ -44,7 +46,8 @@ Add a remote MCP servers under `mcp.remotemcp`.
   "mcp": {
   "mcp": {
     "remotemcp": {
     "remotemcp": {
       "type": "remote",
       "type": "remote",
-      "url": "https://my-mcp-server.com"
+      "url": "https://my-mcp-server.com",
+      "enabled": true
     }
     }
   }
   }
 }
 }