Add repository file content retrieval tools#891
Add repository file content retrieval tools#891rabb1t-dev wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Add three new tools for retrieving file contents from Azure DevOps Git repositories: - repo_get_file_content: Retrieve contents of a single file - repo_list_directory: List files and folders in a directory - repo_get_items_batch: Retrieve multiple files in a single request Features include branch/commit/tag support, binary file detection, content truncation, and encoding detection. Includes comprehensive unit tests and documentation updates.
|
@rabb1t-dev please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #891 +/- ##
=======================================
Coverage ? 93.48%
=======================================
Files ? 16
Lines ? 1626
Branches ? 342
=======================================
Hits ? 1520
Misses ? 25
Partials ? 81
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add three new tools for retrieving file contents from Azure DevOps Git repositories:
Features include branch/commit/tag support, binary file detection, content truncation, and encoding detection. Includes comprehensive unit tests and documentation updates.
Description
These tools enable agents to read source code and configuration files directly from Azure DevOps repositories. Key use cases include:
GitHub issue number
#888
Associated Risks
maxLinesparameter to truncate contentmaxFilesparameter (capped at 50)✅ PR Checklist
🧪 How did you test it?
Unit Tests:
Live Testing:
repo_list_directory: Listed files in multiple reposrepo_get_file_content: Retrieved individual file content successfullyrepo_get_items_batch: Retrieved 4 files in single batch request with proper encoding detectionValidation:
npm run build✅npm run eslint✅npm run validate-tools✅ (83 tools)npm run format✅