Skip to content

Fix elicitation#826

Merged
xiangyan99 merged 5 commits intomainfrom
elicitation_fix
Oct 16, 2025
Merged

Fix elicitation#826
xiangyan99 merged 5 commits intomainfrom
elicitation_fix

Conversation

@xiangyan99
Copy link
Copy Markdown
Member

What does this PR do?

[Provide a clear, concise description of the changes]

#824

[Any additional context, screenshots, or information that helps reviewers]

We changed the default tool loading behavior to execute namespace tool calls directly instead of spawning separate child processes for each namespace in #704.

Fix the elicitation support accordingly.

GitHub issue number?

[Link to the GitHub issue this PR addresses]

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Validate README.md changes using script at eng/scripts/Process-PackageReadMe.ps1. See Package README
    • Updated command list in /servers/Azure.Mcp.Server/docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a regression in the elicitation (user confirmation) feature that stopped working after the default tool loading behavior was changed in #704 to execute namespace tool calls directly instead of spawning separate child processes.

Key Changes:

  • Adds elicitation support to NamespaceToolLoader by implementing security checks for tools marked as handling sensitive data
  • Includes unit tests to verify elicitation handler creation and validation
  • Updates CHANGELOG.md to document the bug fix

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
CHANGELOG.md Documents the elicitation bug fix
NamespaceToolLoaderTests.cs Adds unit tests for elicitation handler functionality in NamespaceToolLoader
NamespaceToolLoader.cs Implements elicitation security checks for sensitive tools before execution

Comment thread servers/Azure.Mcp.Server/CHANGELOG.md Outdated
@joshfree joshfree added server-Azure.Mcp Azure.Mcp.Server tools-Core AZMCP Core functionality that all other tools build on top of labels Oct 15, 2025
@joshfree joshfree moved this from Untriaged to In Progress in Azure MCP Server Oct 15, 2025
@joshfree joshfree added this to the 2025-10 milestone Oct 15, 2025
Copy link
Copy Markdown
Member

@anuchandy anuchandy left a comment

Choose a reason for hiding this comment

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

thanks Xiang!

@xiangyan99 xiangyan99 merged commit 58ff6c8 into main Oct 16, 2025
22 checks passed
@xiangyan99 xiangyan99 deleted the elicitation_fix branch October 16, 2025 16:43
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Oct 16, 2025
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Dec 8, 2025
* Fix elicitation

* update

* update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

server-Azure.Mcp Azure.Mcp.Server tools-Core AZMCP Core functionality that all other tools build on top of

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants