Skip to content

Fix Elicitation by add schema to elicitation requests#1668

Merged
g2vinay merged 2 commits intomicrosoft:mainfrom
g2vinay:fix-elicitation-schema
Feb 9, 2026
Merged

Fix Elicitation by add schema to elicitation requests#1668
g2vinay merged 2 commits intomicrosoft:mainfrom
g2vinay:fix-elicitation-schema

Conversation

@g2vinay
Copy link
Copy Markdown
Contributor

@g2vinay g2vinay commented Feb 7, 2026

MCP SDK released a breaking change, requiring elicitation forms to come with a schema. https://github.com/modelcontextprotocol/csharp-sdk/pull/1151/changes

This PR resolves that issue by adding the schema.

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

Updates Azure MCP server’s sensitive-tool elicitation flow to comply with an MCP SDK breaking change requiring a requestedSchema for form-mode elicitation requests.

Changes:

  • Added a changelog entry describing the elicitation schema fix.
  • Updated HandleSecretElicitationAsync to send an MCP SDK ElicitRequestParams including a required basic schema field for confirmation.

Reviewed changes

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

File Description
servers/Azure.Mcp.Server/changelog-entries/1770433280892.yaml Documents the bug fix for form-mode elicitation schema requirement.
core/Azure.Mcp.Core/src/Areas/Server/Commands/ToolLoading/BaseToolLoader.cs Adds a basic RequestedSchema to elicitation requests and switches to direct ElicitAsync call/result handling.

Comment thread core/Azure.Mcp.Core/src/Areas/Server/Commands/ToolLoading/BaseToolLoader.cs Outdated
Comment thread core/Azure.Mcp.Core/src/Areas/Server/Commands/ToolLoading/BaseToolLoader.cs Outdated
@g2vinay g2vinay force-pushed the fix-elicitation-schema branch from 9a0b4de to c0c4c4c Compare February 7, 2026 04:14
- Use simple accept/decline elicitation without form schema for sensitive tools

- Fixes error: 'Form mode elicitation requests require a requested schema'

- Simpler approach eliminates need to validate form field values

- User must explicitly accept or decline the security warning

- Ensures compatibility with VS Code and other MCP clients
@g2vinay g2vinay force-pushed the fix-elicitation-schema branch from c0c4c4c to c926190 Compare February 7, 2026 06:19
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Feb 9, 2026
@g2vinay g2vinay merged commit ef93e73 into microsoft:main Feb 9, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Feb 9, 2026
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants