From 4de4822219bd6eb249d258e3b1a5613ec1c97243 Mon Sep 17 00:00:00 2001 From: Olcan Date: Sat, 17 May 2025 16:53:22 -0700 Subject: added timeout setting to mcp server config, also switched to custom config type without "stderr" field that does not make sense in settings (#410) --- packages/cli/src/config/settings.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/cli/src') diff --git a/packages/cli/src/config/settings.ts b/packages/cli/src/config/settings.ts index fa8a545d..9f00aabb 100644 --- a/packages/cli/src/config/settings.ts +++ b/packages/cli/src/config/settings.ts @@ -7,7 +7,7 @@ import * as fs from 'fs'; import * as path from 'path'; import { homedir } from 'os'; -import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js'; +import { MCPServerConfig } from '@gemini-code/server/src/config/config.js'; export const SETTINGS_DIRECTORY_NAME = '.gemini'; export const USER_SETTINGS_DIR = path.join(homedir(), SETTINGS_DIRECTORY_NAME); @@ -24,7 +24,7 @@ export interface Settings { toolDiscoveryCommand?: string; toolCallCommand?: string; mcpServerCommand?: string; - mcpServers?: Record; + mcpServers?: Record; // Add other settings here. } @@ -69,10 +69,10 @@ export class LoadedSettings { setValue( scope: SettingScope, key: keyof Settings, - value: string | Record | undefined, + value: string | Record | undefined, ): void { const settingsFile = this.forScope(scope); - // @ts-expect-error - value can be string | Record + // @ts-expect-error - value can be string | Record settingsFile.settings[key] = value; this._merged = this.computeMergedSettings(); saveSettings(settingsFile); -- cgit v1.2.3