diff --git a/src/main/services/MCPService.ts b/src/main/services/MCPService.ts index 37a5d9b7..666da732 100644 --- a/src/main/services/MCPService.ts +++ b/src/main/services/MCPService.ts @@ -309,7 +309,8 @@ export default class MCPService extends EventEmitter { public async activate(server: MCPServer): Promise { await this.ensureInitialized() - const { name, baseUrl, command, args, env } = server + const { name, baseUrl, command, env } = server + const args = [...(server.args || [])] // Skip if already running if (this.clients[name]) {