Repository navigation
Describe confirmable MCP commands accurately in help - #317
Open
Mike Krüger (mkrueger) wants to merge 1 commit into
Open
Mike Krüger (mkrueger) wants to merge 1 commit into
Mike Krüger (mkrueger) wants to merge 1 commit into
Conversation
Mike Krüger (mkrueger)
requested review from
a team
and
a balanced review from Copilot
November 30, 2026 12:43
Contributor
There was a problem hiding this comment.
🟢 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
mcpConfirmableto 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
Code coverage overviewLanguages: C# C# / code-coverage/dotnet
View coverage of the 3 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mcpConfirmablefor restricted commands and retains the existing restriction fields.The
forcehelp clarifies that it only skips the interactive shell prompt. MCP execution rules are unchanged, including confirmation for file transfers and the exception forbulkdry runs without--save.