feat: implement MSSQL tool with schema discovery closes #3377 #4200
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.
Description
This PR introduces a native MSSQL integration tool using the FastMCP pattern.
Note on Methodology: As a specialized .NET and MSSQL Developer, I designed the database architecture and relational logic based on enterprise standards. While I do not have a background in Python, I successfully navigated the implementation by utilizing my analytical backend expertise to guide the Antigravity agent in generating the code. I verified the entire flow by connecting directly to my local MSSQL instance, ensuring the tool is production-ready.
Type of Change
[x] New feature (non-breaking change that adds functionality)
Related Issues
Fixes #3377
Changes Made
Established a local testing environment by connecting to my machine's MSSQL server (MONSTER\MSSQLSERVERR).
Guided Antigravity to implement the mssql_tool.py logic, ensuring it aligns with .NET-style backend principles.
Integrated with CredentialStoreAdapter for secure, environment-based authentication.
Implemented mssql_execute_query, mssql_execute_update, and mssql_get_schema (Schema Discovery).
Testing
[x] Manual testing performed
Local Verification: Successfully connected to my local MSSQL database (AdenTestDB) and executed all core functions.
Relational Tests: Verified complex JOIN and Aggregate queries to ensure data integrity.
Security Check: Confirmed that .env credentials remain local and are never committed.
Checklist
[x] My code follows the project's style guidelines
[x] I have performed a self-review of my code
[x] I have added tests that prove my feature works
Verification Tests in Agent Manager (Antigravity)
I have verified the MSSQL tool's functionality with the following tests:
Schema Discovery: Successfully identified all tables and column types in AdenTestDB.
Data Retrieval: Successfully executed natural language queries to fetch and format employee data.
Data Accuracy: Cross-verified the results with the live SQL Server Management Studio data.
Everything is working as expected! 🚀











CC
@adenhq @RichardTang-Aden