Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ returned as a JSON array.

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

public override async Task<CommandResponse> ExecuteAsync(CommandContext context, ParseResult parseResult)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ List all Azure subscriptions accessible to your account. Optionally specify {Opt

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

public override async Task<CommandResponse> ExecuteAsync(CommandContext context, ParseResult parseResult)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ arguments. Use this to explore the CLI's functionality or to build interactive c

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = false,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

public override async Task<CommandResponse> ExecuteAsync(CommandContext context, ParseResult parseResult)
{
Expand Down
2 changes: 2 additions & 0 deletions servers/Azure.Mcp.Server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The Azure MCP Server updates automatically by default whenever a new release com

### Bugs Fixed

- Marked the secret hint of 'secret_create' tool to true. [[#430](https://github.com/microsoft/mcp/pull/430)]

### Other Changes

## 0.6.0 (2025-09-11)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ public sealed class NodepoolGetCommand(ILogger<NodepoolGetCommand> logger) : Bas

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ public sealed class NodepoolListCommand(ILogger<NodepoolListCommand> logger) : B

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ Once proper input is provided this tool returns a list of insights and solutions
""";

public override string Title => CommandTitle;
public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };

public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ public sealed class SkuGetCommand(ILogger<SkuGetCommand> logger)
public override ToolMetadata Metadata => new()
{
Destructive = false,
OpenWorld = true,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
Comment thread
xiangyan99 marked this conversation as resolved.
};

Expand Down
10 changes: 9 additions & 1 deletion tools/Azure.Mcp.Tools.Extension/src/Commands/AzqrCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ Note that Azure Quick Review CLI (azqr) is different from Azure CLI (az).

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public sealed class SecretCreateCommand(ILogger<SecretCreateCommand> logger) : S
OpenWorld = true,
ReadOnly = false,
LocalRequired = false,
Secret = false
Secret = true
};

public override string Description =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,30 +115,6 @@ public async Task Should_get_secret()
Assert.NotNull(value.GetString());
}

[Fact]
public async Task Should_create_secret()
Comment thread
fanyang-mono marked this conversation as resolved.
{
var secretName = Settings.ResourceBaseName + Random.Shared.NextInt64();
var secretValue = "test-value-" + Random.Shared.NextInt64();
var result = await CallToolAsync(
"azmcp_keyvault_secret_create",
new()
{
{ "subscription", Settings.SubscriptionId },
{ "vault", Settings.ResourceBaseName },
{ "secret", secretName},
{ "value", secretValue }
});

var createdSecretName = result.AssertProperty("name");
Assert.Equal(JsonValueKind.String, createdSecretName.ValueKind);
Assert.Equal(secretName, createdSecretName.GetString());

var returnedValue = result.AssertProperty("value");
Assert.Equal(JsonValueKind.String, returnedValue.ValueKind);
Assert.Equal(secretValue, returnedValue.GetString());
}

[Fact]
public async Task Should_list_certificates()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ public sealed class ServiceHealthEventsListCommand(ILogger<ServiceHealthEventsLi

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = true,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ public sealed class GetBestPracticesCommand(ILogger<GetBestPracticesCommand> log

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = false,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ examples to help with API integration and development.

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = false,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ public sealed class GetWorkloadDefinitionCommand(ILogger<GetWorkloadDefinitionCo

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = false,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ complete API specification in JSON format with supplementary definition files.

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = false,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

public override async Task<CommandResponse> ExecuteAsync(CommandContext context, ParseResult parseResult)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ command first to see available workload types.

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = false,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

protected override void RegisterOptions(Command command)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ with other commands to retrieve their specific API documentation.

public override string Title => CommandTitle;

public override ToolMetadata Metadata => new() { Destructive = false, ReadOnly = true };
public override ToolMetadata Metadata => new()
{
Destructive = false,
Idempotent = true,
OpenWorld = false,
ReadOnly = true,
LocalRequired = false,
Secret = false
};

public override async Task<CommandResponse> ExecuteAsync(CommandContext context, ParseResult parseResult)
{
Expand Down