@@ -58,7 +58,6 @@ describe("MCP Server Setup Configuration", () => {
5858 describe ( "MCP Config JSON Structure" , ( ) => {
5959 it ( "should have required stdio config fields" , ( ) => {
6060 const mcpConfig = {
61- type : "stdio" as const ,
6261 command : "/path/to/node" ,
6362 args : [ "-y" , "@iterable/mcp" ] ,
6463 env : {
@@ -68,7 +67,6 @@ describe("MCP Server Setup Configuration", () => {
6867 } ,
6968 } ;
7069
71- expect ( mcpConfig . type ) . toBe ( "stdio" ) ;
7270 expect ( mcpConfig . command ) . toBeTruthy ( ) ;
7371 expect ( Array . isArray ( mcpConfig . args ) ) . toBe ( true ) ;
7472 // API keys are stored via KeyManager, not in config env
@@ -126,7 +124,6 @@ describe("MCP Server Setup Configuration", () => {
126124 mcpServers : {
127125 ...existingConfig . mcpServers ,
128126 iterable : {
129- type : "stdio" as const ,
130127 command : "node" ,
131128 args : [ ] ,
132129 env : { } ,
@@ -155,7 +152,6 @@ describe("MCP Server Setup Configuration", () => {
155152 mcpServers : {
156153 ...existingConfig . mcpServers ,
157154 iterable : {
158- type : "stdio" as const ,
159155 command : "new-command" ,
160156 args : [ "new-arg" ] ,
161157 env : { NEW_KEY : "new-value" } ,
@@ -173,7 +169,6 @@ describe("MCP Server Setup Configuration", () => {
173169 describe ( "Claude Code JSON Command" , ( ) => {
174170 it ( "should generate valid JSON for claude mcp add-json" , ( ) => {
175171 const mcpConfig = {
176- type : "stdio" as const ,
177172 command : "npx" ,
178173 args : [ "-y" , "@iterable/mcp" ] ,
179174 env : {
@@ -185,15 +180,13 @@ describe("MCP Server Setup Configuration", () => {
185180 const jsonString = JSON . stringify ( mcpConfig ) ;
186181 const parsed = JSON . parse ( jsonString ) ;
187182
188- expect ( parsed . type ) . toBe ( "stdio" ) ;
189183 expect ( parsed . command ) . toBe ( "npx" ) ;
190184 expect ( parsed . args ) . toEqual ( [ "-y" , "@iterable/mcp" ] ) ;
191185 expect ( parsed . env ) . toHaveProperty ( "ITERABLE_USER_PII" ) ;
192186 } ) ;
193187
194188 it ( "should escape special characters in JSON" , ( ) => {
195189 const configWithSpecialChars = {
196- type : "stdio" as const ,
197190 command : "node" ,
198191 args : [ "/path/to/file" ] ,
199192 env : {
@@ -217,7 +210,6 @@ describe("MCP Server Setup Configuration", () => {
217210 describe ( "Configuration Consistency" , ( ) => {
218211 it ( "should generate same config structure for all tools" , ( ) => {
219212 const baseConfig = {
220- type : "stdio" as const ,
221213 command : "npx" ,
222214 args : [ "-y" , "@iterable/mcp" ] ,
223215 env : {
@@ -360,7 +352,8 @@ describe("MCP Server Setup Configuration", () => {
360352 env : mockEnv ,
361353 } ) ;
362354
363- expect ( config ) . toHaveProperty ( "type" , "stdio" ) ;
355+ // Note: type field is omitted for compatibility with Gemini CLI and others
356+ expect ( config ) . not . toHaveProperty ( "type" ) ;
364357 expect ( config ) . toHaveProperty ( "command" ) ;
365358 expect ( config ) . toHaveProperty ( "args" ) ;
366359 expect ( config ) . toHaveProperty ( "env" ) ;
@@ -392,7 +385,6 @@ describe("MCP Server Setup Configuration", () => {
392385
393386 // Should be parseable
394387 const parsed = JSON . parse ( json ) ;
395- expect ( parsed . type ) . toBe ( "stdio" ) ;
396388 expect ( parsed . command ) . toBe ( config . command ) ;
397389 expect ( parsed . args ) . toEqual ( config . args ) ;
398390 expect ( parsed . env ) . toEqual ( config . env ) ;
0 commit comments