@@ -21,7 +21,7 @@ export function createMCPCommand(): Command {
2121 . argument ( "<name>" , "Server name" )
2222 . option (
2323 "-t, --transport <type>" ,
24- "Transport type: stdio | sse | streamable-http (alias: http)" ,
24+ "Transport type: stdio | sse | ws | streamable-http (alias: http)" ,
2525 "stdio" ,
2626 )
2727 . option (
@@ -33,7 +33,7 @@ export function createMCPCommand(): Command {
3333 "Arguments for the server command (for stdio transport)" ,
3434 [ ] ,
3535 )
36- . option ( "-u, --url <url>" , "URL for SSE/HTTP transport" )
36+ . option ( "-u, --url <url>" , "URL for SSE/HTTP/WS transport" )
3737 . option ( "-e, --env [envs...]" , "Environment variables (KEY=VALUE)" )
3838 . option ( "-H, --header [headers...]" , "HTTP headers (KEY=VALUE)" )
3939 . option ( "--timeout <ms>" , "Operation timeout in ms" , ( v ) => parseInt ( v , 10 ) )
@@ -60,6 +60,14 @@ export function createMCPCommand(): Command {
6060 enabled : opts . enabled ,
6161 } ;
6262 break ;
63+ case TRANSPORT_TYPES . WS :
64+ config = {
65+ type : TRANSPORT_TYPES . WS ,
66+ url : opts . url ,
67+ timeout : opts . timeout ,
68+ enabled : opts . enabled ,
69+ } ;
70+ break ;
6371 case TRANSPORT_TYPES . HTTP :
6472 case TRANSPORT_TYPES . STREAMABLE_HTTP :
6573 config = {
0 commit comments