fix: improve gemini mcp add option handling for arrays (#11575)

This commit is contained in:
Jack Wotherspoon
2025-10-21 15:35:01 -04:00
committed by GitHub
parent 3443946087
commit 62dc9683bd
3 changed files with 26 additions and 6 deletions
+2
View File
@@ -173,6 +173,7 @@ export const addCommand: CommandModule = {
describe: 'Set environment variables (e.g. -e KEY=value)',
type: 'array',
string: true,
nargs: 1,
})
.option('header', {
alias: 'H',
@@ -180,6 +181,7 @@ export const addCommand: CommandModule = {
'Set HTTP headers for SSE and HTTP transports (e.g. -H "X-Api-Key: abc123" -H "Authorization: Bearer abc123")',
type: 'array',
string: true,
nargs: 1,
})
.option('timeout', {
describe: 'Set connection timeout in milliseconds',