diff --git a/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.IntegrationTests/GitHubCopilotAgentTests.cs b/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.IntegrationTests/GitHubCopilotAgentTests.cs index 855e9b4037..f8b5210c89 100644 --- a/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.IntegrationTests/GitHubCopilotAgentTests.cs +++ b/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.IntegrationTests/GitHubCopilotAgentTests.cs @@ -14,7 +14,7 @@ public class GitHubCopilotAgentTests private const string SkipReason = "Integration tests require GitHub Copilot CLI installed. For local execution only."; private static Task OnPermissionRequestAsync(PermissionRequest request, PermissionInvocation invocation) - => Task.FromResult(new PermissionRequestResult { Kind = "approved" }); + => Task.FromResult(new PermissionRequestResult { Kind = PermissionRequestResultKind.Approved }); [Fact(Skip = SkipReason)] public async Task RunAsync_WithSimplePrompt_ReturnsResponseAsync() @@ -201,11 +201,10 @@ public class GitHubCopilotAgentTests SessionConfig sessionConfig = new() { OnPermissionRequest = OnPermissionRequestAsync, - McpServers = new Dictionary + McpServers = new Dictionary { - ["filesystem"] = new McpLocalServerConfig + ["filesystem"] = new McpStdioServerConfig { - Type = "stdio", Command = "npx", Args = ["-y", "@modelcontextprotocol/server-filesystem", "."], Tools = ["*"], @@ -234,11 +233,10 @@ public class GitHubCopilotAgentTests SessionConfig sessionConfig = new() { OnPermissionRequest = OnPermissionRequestAsync, - McpServers = new Dictionary + McpServers = new Dictionary { - ["microsoft-learn"] = new McpRemoteServerConfig + ["microsoft-learn"] = new McpHttpServerConfig { - Type = "http", Url = "https://learn.microsoft.com/api/mcp", Tools = ["*"], }, diff --git a/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.UnitTests/GitHubCopilotAgentTests.cs b/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.UnitTests/GitHubCopilotAgentTests.cs index 52ea0026dc..e2d63b4fc5 100644 --- a/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.UnitTests/GitHubCopilotAgentTests.cs +++ b/dotnet/tests/Microsoft.Agents.AI.GitHub.Copilot.UnitTests/GitHubCopilotAgentTests.cs @@ -111,7 +111,7 @@ public sealed class GitHubCopilotAgentTests var systemMessage = new SystemMessageConfig { Mode = SystemMessageMode.Append, Content = "Be helpful" }; PermissionRequestHandler permissionHandler = (_, _) => Task.FromResult(new PermissionRequestResult()); UserInputHandler userInputHandler = (_, _) => Task.FromResult(new UserInputResponse { Answer = "input" }); - var mcpServers = new Dictionary { ["server1"] = new McpLocalServerConfig() }; + var mcpServers = new Dictionary { ["server1"] = new McpStdioServerConfig() }; var source = new SessionConfig { @@ -162,7 +162,7 @@ public sealed class GitHubCopilotAgentTests var systemMessage = new SystemMessageConfig { Mode = SystemMessageMode.Append, Content = "Be helpful" }; PermissionRequestHandler permissionHandler = (_, _) => Task.FromResult(new PermissionRequestResult()); UserInputHandler userInputHandler = (_, _) => Task.FromResult(new UserInputResponse { Answer = "input" }); - var mcpServers = new Dictionary { ["server1"] = new McpLocalServerConfig() }; + var mcpServers = new Dictionary { ["server1"] = new McpStdioServerConfig() }; var source = new SessionConfig {