diff options
| author | Shreya Keshive <[email protected]> | 2025-07-16 17:33:56 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-16 21:33:56 +0000 |
| commit | 69a8ae6a89918f4255304975f8653ff808264bc8 (patch) | |
| tree | bb32342db9f0406bd4f75ffb9756ac81ff84d5a5 /packages/cli/src/config/config.ts | |
| parent | f6ee0d182bcb6c9c6e3c9d34174d8d984bbddb37 (diff) | |
Minor UX updates for IDE mode (#4311)
Diffstat (limited to 'packages/cli/src/config/config.ts')
| -rw-r--r-- | packages/cli/src/config/config.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index 69708a61..83549139 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -306,10 +306,15 @@ export async function loadCliConfig( } if (ideMode) { + if (mcpServers[IDE_SERVER_NAME]) { + logger.warn( + `Ignoring user-defined MCP server config for "${IDE_SERVER_NAME}" as it is a reserved name.`, + ); + } const companionPort = process.env.GEMINI_CLI_IDE_SERVER_PORT; if (!companionPort) { throw new Error( - "Could not run in ide mode, make sure you're running in vs code integrated terminal. Try running in a fresh terminal.", + 'Could not connect to IDE. Make sure you have the companion VS Code extension installed from the marketplace or via /ide install.', ); } const httpUrl = `http://localhost:${companionPort}/mcp`; |
