Skip to content

Clarify MCP import and export format values - #285

Merged
Mike Krüger (mkrueger) merged 3 commits into
mainfrom
dev/mkrueger/fix/273-import-format-metadata
Nov 5, 2026
Merged

Mike Krüger (mkrueger) merged 3 commits into
mainfrom
dev/mkrueger/fix/273-import-format-metadata

Conversation

@mkrueger

Copy link
Copy Markdown
Collaborator

Summary

An MCP client tried import --format array, treating format as an input-file format selector. For import and export, format only selects how the command's summary is presented; file formats are determined from the path and contents.

  • Enumerate user, json, csv, and table for the format argument in the MCP import and export tool schemas. Other commands, including ftab with its own format values, are unchanged.
  • Clarify the import file and format descriptions: input format is detected automatically, and array/jsonl are not valid format values.
  • Add an "Import and export format" section to the MCP docs explaining that format affects only the reported summary, never the file read or written.

Fixes #273.

Validation

  • App and test projects build with zero warnings and errors.
  • Offline regression suite: 5,073 passed, 6 skipped.
  • Localization catalog regenerated; git diff --check passes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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 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, and table in 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

@github-code-quality

github-code-quality Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: C#

C# / code-coverage/dotnet

main 4f49e5a dev/mkrueger/fix/273... 480c680 +/-
74% 74% 0%

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


Updated November 05, 2026 10:03 UTC

@mkrueger
Mike Krüger (mkrueger) enabled auto-merge (squash) November 5, 2026 09:40
Copilot AI balanced review requested due to automatic review settings November 5, 2026 09:50

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 approval of the MCP import/export format clarification.

No open issues 🎉

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 09:53

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 were identified for the MCP import/export summary-format clarification.

No open issues 🎉

Review effort: Balanced

@mkrueger
Mike Krüger (mkrueger) merged commit 819d404 into main Nov 5, 2026
13 checks passed
@mkrueger
Mike Krüger (mkrueger) deleted the dev/mkrueger/fix/273-import-format-metadata branch November 5, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants