@@ -67,7 +67,7 @@ function convertYamlMcpToContinueMcp(
67
67
return {
68
68
transport : {
69
69
type : "stdio" ,
70
- command : server . command || "" , // Add default empty string to handle undefined
70
+ command : server . command ,
71
71
args : server . args ?? [ ] ,
72
72
env : server . env ,
73
73
} as any , // TODO: Fix the mcpServers types in config-yaml (discriminated union)
@@ -424,28 +424,16 @@ async function configYamlToContinueConfig(options: {
424
424
// Trigger MCP server refreshes (Config is reloaded again once connected!)
425
425
const mcpManager = MCPManagerSingleton . getInstance ( ) ;
426
426
mcpManager . setConnections (
427
- ( config . mcpServers ?? [ ] ) . map ( ( server ) => {
428
- // Create proper transport object based on type
429
- const transport = server . type === "sse"
430
- ? {
431
- type : "sse" as const ,
432
- url : server . url || "" ,
433
- faviconUrl : server . faviconUrl
434
- }
435
- : {
436
- type : "stdio" as const ,
437
- command : server . command || "" ,
438
- args : server . args || [ ] ,
439
- env : server . env ,
440
- faviconUrl : server . faviconUrl
441
- } ;
442
- return {
443
- id : server . name ,
444
- name : server . name ,
445
- transport,
446
- timeout : server . connectionTimeout
447
- } ;
448
- } ) ,
427
+ ( config . mcpServers ?? [ ] ) . map ( ( server ) => ( {
428
+ id : server . name ,
429
+ name : server . name ,
430
+ transport : {
431
+ type : "stdio" ,
432
+ args : [ ] ,
433
+ ...( server as any ) , // TODO: fix the types on mcpServers in config-yaml
434
+ } ,
435
+ timeout : server . connectionTimeout ,
436
+ } ) ) ,
449
437
false ,
450
438
) ;
451
439
@@ -491,8 +479,8 @@ export async function loadContinueConfigFromYaml(options: {
491
479
errors : configYamlResult . errors ,
492
480
config : undefined ,
493
481
configLoadInterrupted : true ,
494
- } ;
495
- }
482
+ } ;
483
+ }
496
484
497
485
const { config : continueConfig , errors : localErrors } =
498
486
await configYamlToContinueConfig ( {
0 commit comments