diff --git a/core/Azure.Mcp.Core/src/Commands/Subscription/SubscriptionCommand.cs b/core/Azure.Mcp.Core/src/Commands/Subscription/SubscriptionCommand.cs index 92675bbb65..f54b0ed857 100644 --- a/core/Azure.Mcp.Core/src/Commands/Subscription/SubscriptionCommand.cs +++ b/core/Azure.Mcp.Core/src/Commands/Subscription/SubscriptionCommand.cs @@ -31,6 +31,11 @@ protected override TOptions BindOptions(ParseResult parseResult) { var options = base.BindOptions(parseResult); options.Subscription = CommandHelper.GetSubscription(parseResult); + if (!string.IsNullOrEmpty(options.Subscription)) + { + // Trim any surrounding quotes that may have been included in the input + options.Subscription = options.Subscription.Trim('"', '\''); + } return options; } diff --git a/servers/Azure.Mcp.Server/CHANGELOG.md b/servers/Azure.Mcp.Server/CHANGELOG.md index fa462b830e..47c3202117 100644 --- a/servers/Azure.Mcp.Server/CHANGELOG.md +++ b/servers/Azure.Mcp.Server/CHANGELOG.md @@ -18,8 +18,8 @@ The Azure MCP Server updates automatically by default whenever a new release com ### Bugs Fixed - Fixed problem where help option (`--help`) was showing an error and enabling it across all commands and command groups. [[#583](https://github.com/microsoft/mcp/pull/583)] - - Fixed `azmcp_kusto_table_schema` to return table schema. [[#530](https://github.com/microsoft/mcp/issues/530)] +- Fixed Kusto query fails when the sub id in the input query is enclosed in double quotes. [[#152](https://github.com/microsoft/mcp/issues/152)] ### Other Changes