diff --git a/src-tauri/src/core/mcp.rs b/src-tauri/src/core/mcp.rs index 417944624..772f5ef5e 100644 --- a/src-tauri/src/core/mcp.rs +++ b/src-tauri/src/core/mcp.rs @@ -9,9 +9,7 @@ use tokio::{process::Command, sync::Mutex, time::timeout}; use super::{cmd::get_jan_data_folder_path, state::AppState}; -const DEFAULT_MCP_CONFIG: &str = r#"{ - "mcpServers": {} -}"#; +const DEFAULT_MCP_CONFIG: &str = r#"{"mcpServers":{"browsermcp":{"command":"npx","args":["@browsermcp/mcp"],"env":{},"active":false},"fetch":{"command":"uvx","args":["mcp-server-fetch"],"env":{},"active":false},"filesystem":{"command":"npx","args":["-y","/path/to/other/allowed/dir"],"env":{},"active":false},"playwright":{"command":"npx","args":["@playwright/mcp","--isolated"],"env":{},"active":false},"mindmap":{"command":"uvx","args":["mindmap-mcp-server","--return-type","filePath"],"env":{},"active":false}}}"#; // Timeout for MCP tool calls (30 seconds) const MCP_TOOL_CALL_TIMEOUT: Duration = Duration::from_secs(30); diff --git a/web-app/src/routes/settings/mcp-servers.tsx b/web-app/src/routes/settings/mcp-servers.tsx index 71c653348..3c875ad01 100644 --- a/web-app/src/routes/settings/mcp-servers.tsx +++ b/web-app/src/routes/settings/mcp-servers.tsx @@ -159,7 +159,7 @@ function MCPServers() {
+

MCP Servers @@ -197,35 +197,21 @@ function MCPServers() {

} - /> - - {/* Global MCP Permission Toggle */} - -
-

- Allow All MCP Tool Permissions -

-

- When enabled, all MCP tool calls will be automatically - approved without showing permission dialogs. - - {' '} - Use with caution - {' '} - - only enable this if you trust all your MCP servers. -

-
+ > +
-
- } - /> + } + /> + {Object.keys(mcpServers).length === 0 ? (