[BUG] MCP write-operation confirmation ("yes") not honored in UI -- works fine in terminal
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Description
When confirming a write operation (e.g., CreateParameter via the
Power BI Modeling MCP server) through the Claude Code agent UI,
the operation fails with a "declined" error even after explicitly
selecting "yes" on the confirmation prompt. The same operation
succeeds when run directly in the terminal.
Steps to reproduce
- Connect to Power BI Modeling MCP server in Claude Code
- Ask Claude to create a parameter in a Power BI Desktop semantic model
- When prompted to confirm the write operation, select "Yes" in the UI
- Observe the following error is returned instead of success:
{"success":false,"message":"The user requested a write operation but
declined when asked to confirm. Do not retry or initiate any write
operations on your own. Wait until the user explicitly confirms or
requests a write operation again.","operation":"CreateParameter"}
- Run the same CreateParameter operation directly via terminal —
it succeeds without issue.
Expected behavior
Selecting "Yes" in the confirmation prompt should register the
confirmation and allow the write operation to proceed, consistent
with terminal behavior.
Actual behavior
The UI reports the operation as "declined" despite explicit
confirmation, and blocks further write attempts until a new
confirmation is issued (which also fails the same way).
Environment
- Claude Code version: 2.1.197
- OS: [e.g., macOS 14.5 / Windows 11]
- Interface: Agent UI (not terminal-direct)
- MCP server: Powerbi-modeling-mcp
- Affected tool: CreateParameter (possibly other write tools on this
or other MCP servers — untested)
Additional context
Confirming via terminal-driven invocation works correctly, suggesting
the confirmation response from the UI prompt isn't reaching the MCP
tool call in the same way as terminal-based confirmation.
What Should Happen?
When selecting "Yes" in the Agent U/I, it returns as false instead of true and does not complete the action.
<img width="906" height="370" alt="Image" src="https://github.com/user-attachments/assets/34919299-5b54-4bf2-a10d-3cb75b8a9db1" />
Error Messages/Logs
Steps to Reproduce
- Connect to the Power BI Modeling MCP server in Claude Code.
- Open a semantic model in Power BI Desktop.
- Ask Claude to create a parameter in the semantic model
(e.g., "create a parameter called X with value Y").
- Claude Code prompts for confirmation before executing the
write operation.
- Select "Yes" / confirm explicitly in the UI prompt.
- Observe that the operation fails with the following error,
despite explicit confirmation:
{"success":false,"message":"The user requested a write operation
but declined when asked to confirm. Do not retry or initiate any
write operations on your own. Wait until the user explicitly
confirms or requests a write operation again.","operation":"CreateParameter"}
- As a comparison, run the same CreateParameter operation via a
terminal-driven invocation (not the agent UI). This succeeds
without any confirmation issue, confirming the write operation
itself is valid and the problem is isolated to the UI confirmation
flow.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.197
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗