@@ -462,6 +462,14 @@ public void BuildCodexServerBlock_HttpMode_GeneratesUrlField()
462462 Assert . IsInstanceOf < TomlTable > ( unityMcpNode , "unityMCP should be a table" ) ;
463463
464464 var unityMcp = unityMcpNode as TomlTable ;
465+
466+ // Verify features.rmcp_client is enabled for HTTP transport
467+ Assert . IsTrue ( parsed . TryGetNode ( "features" , out var featuresNode ) , "HTTP mode should include features table" ) ;
468+ Assert . IsInstanceOf < TomlTable > ( featuresNode , "features should be a table" ) ;
469+ var features = featuresNode as TomlTable ;
470+ Assert . IsTrue ( features . TryGetNode ( "rmcp_client" , out var rmcpNode ) , "features should include rmcp_client flag" ) ;
471+ Assert . IsInstanceOf < TomlBoolean > ( rmcpNode , "rmcp_client should be a boolean" ) ;
472+ Assert . IsTrue ( ( rmcpNode as TomlBoolean ) . Value , "rmcp_client should be true" ) ;
465473
466474 // Verify url field is present
467475 Assert . IsTrue ( unityMcp . TryGetNode ( "url" , out var urlNode ) , "unityMCP should contain url in HTTP mode" ) ;
@@ -536,6 +544,14 @@ public void UpsertCodexServerBlock_HttpMode_GeneratesUrlField()
536544
537545 var unityMcp = unityMcpNode as TomlTable ;
538546
547+ // Verify features.rmcp_client is enabled for HTTP transport
548+ Assert . IsTrue ( parsed . TryGetNode ( "features" , out var featuresNode ) , "HTTP mode should include features table" ) ;
549+ Assert . IsInstanceOf < TomlTable > ( featuresNode , "features should be a table" ) ;
550+ var features = featuresNode as TomlTable ;
551+ Assert . IsTrue ( features . TryGetNode ( "rmcp_client" , out var rmcpNode ) , "features should include rmcp_client flag" ) ;
552+ Assert . IsInstanceOf < TomlBoolean > ( rmcpNode , "rmcp_client should be a boolean" ) ;
553+ Assert . IsTrue ( ( rmcpNode as TomlBoolean ) . Value , "rmcp_client should be true" ) ;
554+
539555 // Verify url field is present
540556 Assert . IsTrue ( unityMcp . TryGetNode ( "url" , out var urlNode ) , "unityMCP should contain url in HTTP mode" ) ;
541557 Assert . IsInstanceOf < TomlString > ( urlNode , "url should be a string" ) ;
0 commit comments