Repository navigation
Clarify MCP import and export format values - #285
Merged
Mike Krüger (mkrueger) merged 3 commits intoNov 5, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Mike Krüger (mkrueger)
requested review from
a team
and
a balanced review from Copilot
November 4, 2026 10:11
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the MCP import/export format-contract clarification.
No open issues 🎉
What changed in this PR
Clarifies the MCP import and export format contract to address #273: format controls summary presentation, not the file format.
Changes:
- Enumerates
user,json,csv, andtablein the two tools’ schemas without changing other commands. - Clarifies automatic import file-format detection in localized help and MCP documentation.
- Adds schema regression tests and records the improvement in the changelog.
| File | Description |
|---|---|
l10n/CosmosDBShell.json |
Updates generated import help text. |
docs/mcp.md |
Explains summary formats versus file formats. |
CosmosDBShell/lang/en.ftl |
Clarifies import file detection and valid format values. |
CosmosDBShell/Azure.Data.Cosmos.Shell.Mcp/ToolOperations.cs |
Adds format enums to import and export schemas. |
CosmosDBShell.Tests/ToolOperationsTests.cs |
Tests format values, descriptions, and unrelated options. |
CHANGELOG.md |
Records the MCP format clarification. |
Review effort: Balanced
Vsevolod Kukol (sevoku)
approved these changes
Nov 5, 2026
Mike Krüger (mkrueger)
enabled auto-merge (squash)
November 5, 2026 09:40
Vsevolod Kukol (sevoku)
approved these changes
Nov 5, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vsevolod Kukol (sevoku)
approved these changes
Nov 5, 2026
Mike Krüger (mkrueger)
deleted the
dev/mkrueger/fix/273-import-format-metadata
branch
November 5, 2026 10:10
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.
Summary
An MCP client tried
import --format array, treatingformatas an input-file format selector. Forimportandexport,formatonly selects how the command's summary is presented; file formats are determined from the path and contents.user,json,csv, andtablefor theformatargument in the MCPimportandexporttool schemas. Other commands, includingftabwith its ownformatvalues, are unchanged.importfile andformatdescriptions: input format is detected automatically, andarray/jsonlare not validformatvalues.format" section to the MCP docs explaining thatformataffects only the reported summary, never the file read or written.Fixes #273.
Validation
git diff --checkpasses.