-
Notifications
You must be signed in to change notification settings - Fork 317
[MCP] aggregate_records DML tool #3199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+2,618
−309
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
2d96151
Initial plan
Copilot eaaa522
Changes before error encountered
Copilot f855e96
Add first/after pagination support to aggregate_records tool
Copilot 3573321
Add exhaustive tool instructions and all 13 spec example tests
Copilot f66bf3f
Changes before error encountered
Copilot 829a630
Changes before error encountered
Copilot 3ccc748
Update query-timeout default to 30s, add converter support, apply tim…
Copilot 381899d
Fix group key collision using \\0 delimiter, add #nullable enable to …
Copilot fde4d65
Fix nullable warnings in AggregateRecordsToolTests.cs
Copilot ba371d5
Add null check for errorType in AggregateRecordsToolTests
Copilot d340cb4
Apply validation fixes and additional tests from copilot/update-aggre…
41ccb2f
Refactor using directives in AggregateRecordsTool.cs to improve code …
eb99aba
Enhance AggregateRecordsTool to build SQL aggregate queries, improvin…
006f17a
Rewrite aggregate tests for SQL-level aggregation
d35088c
Fix negative cursor offset and add first max validation
ef7fd0d
Refactor AggregateRecordsTool to use engine query builder pattern
c5920c7
Fix SQL generation bugs in AggregateRecordsTool
203fde1
Add comprehensive blog scenario tests from DAB MCP blog
fab587f
Tighten tool description and parameter docs to remove duplication
5c93f92
Add early field validation and FieldNotFound error helper
d1268f2
Rename truncated variables to descriptive names
5390471
Remove hallucinated first > 100000 validation
b55cdde
Clean up extra blank line from validation removal
7f4e259
Add AggregateRecordsTool documentation for SQL-level aggregations
d83ded2
Simplify sequence diagram and expand design decisions
1327150
Merge branch 'main' into copilot/add-aggregate-records-tool
souvikghosh04 6815b65
Changes before error encountered
Copilot c7010ff
Removing duplicate registration from stdio which is failing runs
souvikghosh04 5038cc7
update snapshot test files
souvikghosh04 ecbb2fa
Merge branch 'main' into copilot/add-aggregate-records-tool
souvikghosh04 88968f6
Initial plan
Copilot b87be6f
Fixes from code reviews
souvikghosh04 38c773d
Snapshot files and test fixes
souvikghosh04 7b85658
Add AggregateRecords and query-timeout properties to Service.Tests sn…
souvikghosh04 46134de
Fix initial Github Copilot AI reviews
souvikghosh04 70fb36b
Merge branch 'main' into Usr/sogh/aggregate_records
souvikghosh04 e3ee238
Refactor core tool logic and tests
souvikghosh04 987294e
Additional self review fixes
souvikghosh04 d5de2b4
Format and consistency fixing
souvikghosh04 f951685
Merge branch 'main' into Usr/sogh/aggregate_records
Aniruddh25 388e231
Merge branch 'main' into Usr/sogh/aggregate_records
Aniruddh25 a08da11
Review comments fixes
souvikghosh04 d4b527c
Merge branch 'Usr/sogh/aggregate_records' of https://github.com/Azure…
souvikghosh04 3add20a
Revert unwanted changes
souvikghosh04 c5ceded
Fix failing tests
souvikghosh04 bf50a39
Merge branch 'main' into Usr/sogh/aggregate_records
Aniruddh25 8520d53
use query-timeout only for aggregate_records
souvikghosh04 7511146
Fix failing test MsSQL snapshot
souvikghosh04 9e1b735
Remove redundant test for default timeout
Aniruddh25 a5d2310
Merge branch 'main' into Usr/sogh/aggregate_records
Aniruddh25 dfe3ae8
Review comment and refactoring fixes
souvikghosh04 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
1,087 changes: 1,087 additions & 0 deletions
1,087
src/Azure.DataApiBuilder.Mcp/BuiltInTools/AggregateRecordsTool.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.