feat(extensions) - Add local/remote for mcp servers (#8355)

Co-authored-by: Shi Shu <shii@google.com>
This commit is contained in:
shishu314
2025-09-15 11:11:14 -04:00
committed by GitHub
parent c1de070a5e
commit 7470133a13
2 changed files with 44 additions and 2 deletions

View File

@@ -481,8 +481,11 @@ export async function installExtension(
);
if (mcpServerEntries.length) {
console.info('This extension will run the following MCP servers: ');
for (const [key, value] of mcpServerEntries) {
console.info(` * ${key}: ${value.description}`);
for (const [key, mcpServer] of mcpServerEntries) {
const isLocal = !!mcpServer.command;
console.info(
` * ${key} (${isLocal ? 'local' : 'remote'}): ${mcpServer.description}`,
);
}
console.info(
'The extension will append info to your gemini.md context',