Skip to content

Convert all CollectionCommand to MCP tools#2432

Merged
Hazel-Datastax merged 4 commits intomainfrom
hazel/add-all-collection-command-mcp-tools
Mar 20, 2026
Merged

Convert all CollectionCommand to MCP tools#2432
Hazel-Datastax merged 4 commits intomainfrom
hazel/add-all-collection-command-mcp-tools

Conversation

@Hazel-Datastax
Copy link
Contributor

@Hazel-Datastax Hazel-Datastax commented Mar 18, 2026

What this PR does:
Convert all CollectionCommand to MCP tools

Which issue(s) this PR fixes:
Fixes #2408

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

📉 Unit Test Coverage Delta vs Main Branch

Metric Value
Main Branch 49.92%
This PR 49.85%
Delta 🔴 -0.07%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Unit Test Coverage Report

Overall Project 49.85% -0.16% 🍏
Files changed 0%

File Coverage
FindOneAndUpdateCommand.java 93.1% 🍏
UpdateOneCommand.java 91.3% 🍏
InsertManyCommand.java 90% 🍏
CountDocumentsCommand.java 75% 🍏
EstimatedDocumentCountCommand.java 0% 🍏
CollectionCommandTools.java 0% -62.64%

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

📉 Integration Test Coverage Delta vs Main Branch (dse69-it)

Metric Value
Main Branch 70.90%
This PR 70.79%
Delta 🔴 -0.11%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Integration Test Coverage Report (dse69-it)

Overall Project 70.79% -0.16% 🍏
Files changed 0%

File Coverage
InsertManyCommand.java 100% 🍏
UpdateOneCommand.java 100% 🍏
FindOneAndUpdateCommand.java 100% 🍏
CountDocumentsCommand.java 100% 🍏
EstimatedDocumentCountCommand.java 0% 🍏
CollectionCommandTools.java 0% -62.64%

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

📉 Integration Test Coverage Delta vs Main Branch (hcd-it)

Metric Value
Main Branch 72.63%
This PR 72.52%
Delta 🔴 -0.11%
⚠️ Coverage decreased

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Integration Test Coverage Report (hcd-it)

Overall Project 72.52% -0.16% 🍏
Files changed 0%

File Coverage
InsertManyCommand.java 100% 🍏
UpdateOneCommand.java 100% 🍏
FindOneAndUpdateCommand.java 100% 🍏
CountDocumentsCommand.java 100% 🍏
EstimatedDocumentCountCommand.java 0% 🍏
CollectionCommandTools.java 0% -62.64%

@Hazel-Datastax Hazel-Datastax changed the title add more tools Convert all CollectionCommand to MCP tools Mar 20, 2026
@Hazel-Datastax Hazel-Datastax marked this pull request as ready for review March 20, 2026 17:09
@Hazel-Datastax Hazel-Datastax requested a review from a team as a code owner March 20, 2026 17:09
public Uni<ToolResponse> findOne(
@Tool(
description =
"Command that finds a single JSON document from a collection and deletes it. The deleted document is returned")
Copy link
Contributor

Choose a reason for hiding this comment

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

wording: I am not sure we need/should include "JSON" before "document" -- Collections have documents, tables have columns? As long as we use consistent wording, not a big deal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I just copied it from the command description. Aaron has a plan to centralize these descriptions. Maybe we can update later.

Copy link
Contributor

@tatu-at-datastax tatu-at-datastax left a comment

Choose a reason for hiding this comment

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

Looks good: some wording changes that's all.

@Hazel-Datastax Hazel-Datastax merged commit 02f7afe into main Mar 20, 2026
3 checks passed
@Hazel-Datastax Hazel-Datastax deleted the hazel/add-all-collection-command-mcp-tools branch March 20, 2026 21:22
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.

Add MCP Support for Data API

2 participants