feat(desktop): wire MCP client to settings UI
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- MCPServices.tsx now calls real Tauri commands (start/stop/list)
  instead of only toggling config flags
- Show running service count, discovered tools per service
- Expand/collapse tool list for each running MCP service
- Extended QuickConfig mcpServices type with command/args/env/cwd
- Config change persists enabled state, MCP start/stop happens live
This commit is contained in:
iven
2026-04-04 01:30:13 +08:00
parent 0be31bbf7e
commit 912f117ea3
2 changed files with 168 additions and 30 deletions

View File

@@ -23,7 +23,15 @@ export interface QuickConfig {
gatewayUrl?: string;
gatewayToken?: string;
skillsExtraDirs?: string[];
mcpServices?: Array<{ id: string; name: string; enabled: boolean }>;
mcpServices?: Array<{
id: string;
name: string;
enabled: boolean;
command?: string;
args?: string[];
env?: Record<string, string>;
cwd?: string;
}>;
theme?: 'light' | 'dark';
autoStart?: boolean;
showToolCalls?: boolean;