2626 *
2727 * <p>
2828 * These tests use the shared CapiProxy infrastructure for deterministic API
29- * response replay. Snapshots are stored in test/snapshots/mcp-and-agents /.
29+ * response replay. Snapshots are stored in test/snapshots/mcp_and_agents /.
3030 * </p>
3131 */
3232public class McpAndAgentsTest {
@@ -59,7 +59,7 @@ private Map<String, Object> createLocalMcpServer(String command, List<String> ar
5959
6060 @ Test
6161 void testAcceptMcpServerConfigurationOnSessionCreate () throws Exception {
62- ctx .configureForTest ("mcp-and-agents " , "should_accept_mcp_server_configuration_on_session_create" );
62+ ctx .configureForTest ("mcp_and_agents " , "should_accept_mcp_server_configuration_on_session_create" );
6363
6464 Map <String , Object > mcpServers = new HashMap <>();
6565 mcpServers .put ("test-server" , createLocalMcpServer ("echo" , List .of ("hello" )));
@@ -83,7 +83,7 @@ void testAcceptMcpServerConfigurationOnSessionCreate() throws Exception {
8383
8484 @ Test
8585 void testAcceptMcpServerConfigurationOnSessionResume () throws Exception {
86- ctx .configureForTest ("mcp-and-agents " , "should_accept_mcp_server_configuration_on_session_resume" );
86+ ctx .configureForTest ("mcp_and_agents " , "should_accept_mcp_server_configuration_on_session_resume" );
8787
8888 try (CopilotClient client = ctx .createClient ()) {
8989 // Create a session first
@@ -115,7 +115,7 @@ void testAcceptMcpServerConfigurationOnSessionResume() throws Exception {
115115 void testHandleMultipleMcpServers () throws Exception {
116116 // Use same snapshot as single MCP server test since it doesn't depend on server
117117 // count
118- ctx .configureForTest ("mcp-and-agents " , "should_accept_mcp_server_configuration_on_session_create" );
118+ ctx .configureForTest ("mcp_and_agents " , "should_accept_mcp_server_configuration_on_session_create" );
119119
120120 Map <String , Object > mcpServers = new HashMap <>();
121121 mcpServers .put ("server1" , createLocalMcpServer ("echo" , List .of ("server1" )));
@@ -133,7 +133,7 @@ void testHandleMultipleMcpServers() throws Exception {
133133
134134 @ Test
135135 void testAcceptCustomAgentConfigurationOnSessionCreate () throws Exception {
136- ctx .configureForTest ("mcp-and-agents " , "should_accept_custom_agent_configuration_on_session_create" );
136+ ctx .configureForTest ("mcp_and_agents " , "should_accept_custom_agent_configuration_on_session_create" );
137137
138138 List <CustomAgentConfig > customAgents = List .of (new CustomAgentConfig ().setName ("test-agent" )
139139 .setDisplayName ("Test Agent" ).setDescription ("A test agent for SDK testing" )
@@ -158,7 +158,7 @@ void testAcceptCustomAgentConfigurationOnSessionCreate() throws Exception {
158158
159159 @ Test
160160 void testAcceptCustomAgentConfigurationOnSessionResume () throws Exception {
161- ctx .configureForTest ("mcp-and-agents " , "should_accept_custom_agent_configuration_on_session_resume" );
161+ ctx .configureForTest ("mcp_and_agents " , "should_accept_custom_agent_configuration_on_session_resume" );
162162
163163 try (CopilotClient client = ctx .createClient ()) {
164164 // Create a session first
@@ -191,7 +191,7 @@ void testAcceptCustomAgentConfigurationOnSessionResume() throws Exception {
191191 void testCustomAgentWithToolsConfiguration () throws Exception {
192192 // Use same snapshot as create test since this just verifies configuration
193193 // acceptance
194- ctx .configureForTest ("mcp-and-agents " , "should_accept_custom_agent_configuration_on_session_create" );
194+ ctx .configureForTest ("mcp_and_agents " , "should_accept_custom_agent_configuration_on_session_create" );
195195
196196 List <CustomAgentConfig > customAgents = List .of (new CustomAgentConfig ().setName ("tool-agent" )
197197 .setDisplayName ("Tool Agent" ).setDescription ("An agent with specific tools" )
@@ -208,7 +208,7 @@ void testCustomAgentWithToolsConfiguration() throws Exception {
208208 @ Test
209209 void testCustomAgentWithMcpServers () throws Exception {
210210 // Use combined snapshot since this uses both MCP servers and custom agents
211- ctx .configureForTest ("mcp-and-agents " , "should_accept_both_mcp_servers_and_custom_agents" );
211+ ctx .configureForTest ("mcp_and_agents " , "should_accept_both_mcp_servers_and_custom_agents" );
212212
213213 Map <String , Object > agentMcpServers = new HashMap <>();
214214 agentMcpServers .put ("agent-server" , createLocalMcpServer ("echo" , List .of ("agent-mcp" )));
@@ -228,7 +228,7 @@ void testCustomAgentWithMcpServers() throws Exception {
228228 @ Test
229229 void testMultipleCustomAgents () throws Exception {
230230 // Use same snapshot as create test
231- ctx .configureForTest ("mcp-and-agents " , "should_accept_custom_agent_configuration_on_session_create" );
231+ ctx .configureForTest ("mcp_and_agents " , "should_accept_custom_agent_configuration_on_session_create" );
232232
233233 List <CustomAgentConfig > customAgents = List .of (
234234 new CustomAgentConfig ().setName ("agent1" ).setDisplayName ("Agent One" ).setDescription ("First agent" )
@@ -248,7 +248,7 @@ void testMultipleCustomAgents() throws Exception {
248248
249249 @ Test
250250 void testAcceptBothMcpServersAndCustomAgents () throws Exception {
251- ctx .configureForTest ("mcp-and-agents " , "should_accept_both_mcp_servers_and_custom_agents" );
251+ ctx .configureForTest ("mcp_and_agents " , "should_accept_both_mcp_servers_and_custom_agents" );
252252
253253 Map <String , Object > mcpServers = new HashMap <>();
254254 mcpServers .put ("shared-server" , createLocalMcpServer ("echo" , List .of ("shared" )));
0 commit comments