Handle newer Azure AI Search knowledge bases and those set 'minimal' reasoning effort#1422
Merged
pablocastro merged 6 commits intomicrosoft:mainfrom Feb 3, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Azure AI Search tool to support newer versions of Azure AI Search knowledge bases, particularly those configured with 'minimal' reasoning effort. The changes migrate from the deprecated KnowledgeAgent* API to the newer KnowledgeBase* API and add logic to detect and handle minimal reasoning mode appropriately.
Key changes:
- Upgrades Azure.Search.Documents from 11.7.0-beta.7 to 11.8.0-beta.1
- Migrates from KnowledgeAgent API to KnowledgeBase API (naming and namespace changes)
- Adds detection of minimal reasoning effort configuration and routes requests accordingly
- Adds comprehensive unit tests for the new BuildKnowledgeBaseRetrievalRequest method
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| Directory.Packages.props | Updates Azure.Search.Documents package version to support new KnowledgeBase API |
| tools/Azure.Mcp.Tools.Search/src/Services/SearchService.cs | Migrates to KnowledgeBase API, adds minimal reasoning detection, and implements request builder method |
| tools/Azure.Mcp.Tools.Search/tests/Azure.Mcp.Tools.Search.UnitTests/Service/SearchServiceTests.cs | Adds unit tests for BuildKnowledgeBaseRetrievalRequest covering minimal and standard reasoning scenarios |
| servers/Azure.Mcp.Server/changelog-entries/1766191976865.yaml | Documents the bug fix for supporting newer knowledge base versions |
alzimmermsft
approved these changes
Jan 6, 2026
cd9340b to
3a3abad
Compare
Member
Author
|
Fixes #1615 |
alzimmermsft
approved these changes
Feb 2, 2026
50ce342 to
df0952f
Compare
Member
Author
|
@alzimmermsft would you mind approving this one more time? Had to update the live test recordings. |
alzimmermsft
approved these changes
Feb 3, 2026
Contributor
|
@pablocastro approved! Thanks for fixing this! |
colbytimm
pushed a commit
to colbytimm/microsoft-mcp
that referenced
this pull request
Apr 20, 2026
…reasoning effort (microsoft#1422) * Bump Azure Search SDK version to pick up latest KB support * Handle KBs set to 'minimal' reasoning effort * Adding changelog entry * Incorporate Copilot PR feedback * Updating live tests recording for Search * Updating live tests recording for Search (again)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this PR do?
Updates the Azure AI Search knowledge base retrieve command to handle newer Azure AI Search knowledge bases and those set 'minimal' reasoning effort.
Test note: we need a new live test to catch KB-specific issues. Leaving this for a different PR since there's some coordination needed for live tests.
GitHub issue number?
--
Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentationeng/scripts/Process-PackageReadMe.ps1. See Package README/servers/Azure.Mcp.Server/docs/azmcp-commands.mdand/or/docs/fabric-commands.md.\eng\scripts\Update-AzCommandsMetadata.ps1to update tool metadata in azmcp-commands.md (required for CI)ToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test promptsconsolidated-tools.json/servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline