Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 25, 2025

  • Remove duplicate Azure.Mcp.Core.Models.Option imports from all affected files
    • core/Azure.Mcp.Core/src/Areas/Tools/Commands/ToolsListCommand.cs
    • tools/Azure.Mcp.Tools.Monitor/src/Commands/BaseMonitorCommand.cs
    • tools/Azure.Mcp.Tools.VirtualDesktop/src/Commands/BaseVirtualDesktopCommand.cs
    • tools/Azure.Mcp.Tools.SignalR/src/Commands/BaseSignalRCommand.cs
    • tools/Azure.Mcp.Tools.Monitor/src/Commands/Metrics/BaseMetricsCommand.cs
    • tools/Azure.Mcp.Tools.LoadTesting/src/Commands/BaseLoadTestingCommand.cs
    • tools/Azure.Mcp.Tools.AppService/src/Commands/BaseAppServiceCommand.cs
    • tools/Azure.Mcp.Tools.Acr/src/Commands/BaseAcrCommand.cs
    • tools/Azure.Mcp.Tools.Sql/src/Commands/BaseSqlCommand.cs
    • tools/Azure.Mcp.Tools.Postgres/src/Commands/BasePostgresCommand.cs
    • tools/Azure.Mcp.Tools.MySql/src/Commands/BaseMySqlCommand.cs
  • Build and verify changes

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@hallipr
Copy link
Member

hallipr commented Nov 25, 2025

@copilot, there's nothing to review

Copy link
Contributor Author

Copilot AI commented Nov 25, 2025

@copilot, there's nothing to review

I see the bot flagged duplicate imports (Azure.Mcp.Core.Models.Option and Microsoft.Mcp.Core.Models.Option). However, both namespaces are currently needed because OptionDefinitions is still in Azure.Mcp.Core.Models.Option while the extension methods like AsRequired() and AsOptional() are now in Microsoft.Mcp.Core.Models.Option.

To remove the old import, we would need to also move OptionDefinitions to the new namespace. Should I proceed with that migration, or is there a different approach you'd like me to take?

Copilot finished work on behalf of hallipr November 25, 2025 23:01
@hallipr
Copy link
Member

hallipr commented Nov 25, 2025

@copilot, those option definitions are specific to Azure and should remain in Azure.Mcp.Core

Copy link
Contributor Author

Copilot AI commented Nov 25, 2025

@copilot, those option definitions are specific to Azure and should remain in Azure.Mcp.Core

Understood. Since OptionDefinitions should remain in Azure.Mcp.Core.Models.Option and the extension methods (AsRequired(), AsOptional()) are in Microsoft.Mcp.Core.Models.Option, both imports are necessary and correct. The bot's duplicate import warning was a false positive. No changes needed for this PR.

Copilot finished work on behalf of hallipr November 25, 2025 23:31
Base automatically changed from users/pahallis/core-migration to main November 26, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants