claude-code - 💡(How to fix) Fix MCP Elicitation support for write confirmations (Power BI Modeling MCP Server) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55091Fetched 2026-05-01 05:46:28
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4closed ×1commented ×1

Error Message

  1. Observe the "declined when asked to confirm" error

Root Cause

The Power BI Modeling MCP Server uses MCP Elicitation to ask for write confirmation. GitHub Copilot (VS Code native) handles elicitation and approves it. Claude Code appears to respond with "declined" to elicitation requests, blocking all write operations.

Read operations work fine.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Problem

Claude Code cannot perform write operations via the Power BI Modeling MCP Server (analysis-services.powerbi-modeling-mcp VS Code extension).

Every write operation (create measure, refresh model, begin transaction, etc.) returns:

"The user requested a write operation but declined when asked to confirm. Do not retry or initiate any write operations on your own."

Root cause

The Power BI Modeling MCP Server uses MCP Elicitation to ask for write confirmation. GitHub Copilot (VS Code native) handles elicitation and approves it. Claude Code appears to respond with "declined" to elicitation requests, blocking all write operations.

Read operations work fine.

Expected behavior

Claude Code should support MCP Elicitation so that write confirmation requests from MCP servers can be approved/denied by the user.

Steps to reproduce

  1. Install the Power BI Modeling MCP Server VS Code extension
  2. Open a Power BI Desktop file
  3. Ask Claude Code to create a measure or refresh the model
  4. Observe the "declined when asked to confirm" error

Environment

  • Claude Code (VS Code extension)
  • Power BI Modeling MCP Server v0.4.0
  • Windows 11

Proposed Solution

Pegá esto:

When an MCP server sends an elicitation request (write confirmation), Claude Code should display it to the user inline in the chat as a confirmation prompt — similar to how it already handles tool permission prompts — with "Allow" and "Deny" buttons.

Ideal flow:

  1. User asks Claude Code to create a measure in Power BI
  2. Claude Code calls the MCP tool
  3. The MCP server sends an elicitation request asking to confirm the write
  4. Claude Code surfaces it as: "The Power BI MCP server is requesting confirmation to perform a write operation. Allow?"
  5. User clicks Allow → operation proceeds
  6. User clicks Deny → operation is cancelled

Optionally, support an "Always allow writes for this server" checkbox to avoid repeated prompts per session.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

MCP server integration

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Implementing MCP Elicitation support in Claude Code to handle write confirmation requests from MCP servers is the most likely fix.

Guidance

  • Modify Claude Code to display MCP server elicitation requests as inline confirmation prompts with "Allow" and "Deny" buttons.
  • Update the code to handle user input from these prompts and send the corresponding response back to the MCP server.
  • Consider adding an "Always allow writes for this server" checkbox to avoid repeated prompts per session.
  • Verify the fix by testing write operations (e.g., creating a measure or refreshing the model) with the Power BI Modeling MCP Server extension.

Example

// Pseudocode example of how Claude Code might handle MCP elicitation requests
if (mcpServerRequest.type === 'elicitation') {
  const userResponse = await displayConfirmationPrompt('Allow', 'Deny');
  if (userResponse === 'Allow') {
    // Send approval response to MCP server
  } else {
    // Send denial response to MCP server
  }
}

Notes

The proposed solution requires changes to Claude Code's handling of MCP server requests. The exact implementation details may vary depending on the codebase and existing architecture.

Recommendation

Apply the proposed solution to implement MCP Elicitation support in Claude Code, as it directly addresses the root cause of the issue and provides a clear path forward for fixing the problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Claude Code should support MCP Elicitation so that write confirmation requests from MCP servers can be approved/denied by the user.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix MCP Elicitation support for write confirmations (Power BI Modeling MCP Server) [1 comments, 2 participants]