Skip to content

Describe confirmable MCP commands accurately in help - #317

Open
Mike Krüger (mkrueger) wants to merge 1 commit into
mainfrom
dev/mkrueger/fix/308-mcp-help
Open

Mike Krüger (mkrueger) wants to merge 1 commit into
mainfrom
dev/mkrueger/fix/308-mcp-help

Conversation

@mkrueger

Copy link
Copy Markdown
Collaborator

Fixes #308.

Command help and MCP tool descriptions now distinguish interactive-only commands from commands that MCP can run after explicit user confirmation. Structured help adds mcpConfirmable for restricted commands and retains the existing restriction fields.

The force help clarifies that it only skips the interactive shell prompt. MCP execution rules are unchanged, including confirmation for file transfers and the exception for bulk dry runs without --save.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the changes clarifying command-help restrictions and MCP confirmation requirements.

No open issues 🎉

What changed in this PR

Addresses #308 by making command help distinguish interactive-only commands from commands that MCP can run with explicit user confirmation, without changing execution rules.

Changes:

  • Centralizes restriction descriptions and adds mcpConfirmable to structured help while retaining existing restriction fields.
  • Clarifies confirmation requirements for destructive commands, file transfers, and bulk operations.
  • Updates localized text, documentation, and regression tests for consistent help output.
File Description
l10n/​CosmosDBShell.json Synchronizes the localization catalog with revised help text.
docs/​mcp.md Documents restriction fields and confirmation semantics.
docs/​commands.md Clarifies that force skips only the interactive shell prompt.
CosmosDBShell/​lang/​en.ftl Adds shared restriction messages and clarifies confirmation requirements.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Mcp/​ToolOperations.cs Uses shared restriction metadata while preserving confirmation gates.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​HelpCommand.cs Aligns rendered and structured help with MCP restrictions.
CosmosDBShell/​Azure.Data.Cosmos.Shell.Commands/​CommandFactory.cs Centralizes confirmability and restriction descriptions.
CosmosDBShell.Tests/​ToolOperationsTests.cs Checks file-command restriction descriptions and metadata.
CosmosDBShell.Tests/​HelpCommandVerificationTests.cs Verifies consistency across help formats and MCP tool descriptions.
CosmosDBShell.Tests/​CommandTests/​BulkCommandTests.cs Updates the assertion for bulk dry-run confirmation wording.

Review effort: Balanced

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: C#

C# / code-coverage/dotnet

main 3628267 dev/mkrueger/fix/308... bcd4561 +/-
76% 76% 0%
View coverage of the 3 most impacted files.
File main 3628267 dev/mkrueger/fix/308... bcd4561 +/-
D:\a\CosmosDBSh...\HelpCommand.cs 86% 86% 0%
D:\a\CosmosDBSh...olOperations.cs 95% 95% 0%
D:\a\CosmosDBSh...mmandFactory.cs 95% 96% +1%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describe confirmable MCP commands accurately in structured help

2 participants