Spaces:
Sleeping
Sleeping
Update filesystem tool workspace paths for server environment
Browse files- mcp_integration.py +9 -6
mcp_integration.py
CHANGED
@@ -371,8 +371,9 @@ async def add_filesystem_tool(mcp_client: MCPBrainClient, workspace_paths: List[
|
|
371 |
"""
|
372 |
if workspace_paths is None:
|
373 |
workspace_paths = [
|
374 |
-
"/
|
375 |
-
"/
|
|
|
376 |
]
|
377 |
|
378 |
try:
|
@@ -399,8 +400,9 @@ def create_filesystem_tool_factory(workspace_paths: List[str] = None):
|
|
399 |
"""
|
400 |
if workspace_paths is None:
|
401 |
workspace_paths = [
|
402 |
-
"/
|
403 |
-
"/
|
|
|
404 |
]
|
405 |
|
406 |
async def add_to_client(mcp_client: MCPBrainClient):
|
@@ -417,8 +419,9 @@ class MCPToolConfig:
|
|
417 |
"command": "npx",
|
418 |
"args": ["-y", "@modelcontextprotocol/server-filesystem"],
|
419 |
"workspace_paths": [
|
420 |
-
"/
|
421 |
-
"/
|
|
|
422 |
]
|
423 |
}
|
424 |
|
|
|
371 |
"""
|
372 |
if workspace_paths is None:
|
373 |
workspace_paths = [
|
374 |
+
"/tmp",
|
375 |
+
"/home/user/app",
|
376 |
+
"."
|
377 |
]
|
378 |
|
379 |
try:
|
|
|
400 |
"""
|
401 |
if workspace_paths is None:
|
402 |
workspace_paths = [
|
403 |
+
"/tmp",
|
404 |
+
"/home/user/app",
|
405 |
+
"."
|
406 |
]
|
407 |
|
408 |
async def add_to_client(mcp_client: MCPBrainClient):
|
|
|
419 |
"command": "npx",
|
420 |
"args": ["-y", "@modelcontextprotocol/server-filesystem"],
|
421 |
"workspace_paths": [
|
422 |
+
"/tmp",
|
423 |
+
"/home/user/app",
|
424 |
+
"."
|
425 |
]
|
426 |
}
|
427 |
|