t3code icon indicating copy to clipboard operation
t3code copied to clipboard

MCP apps ask for approval on every app-only "save view state" call

Open m1trenv0 opened this issue 1 week ago • 1 comments

What happens

Apps from the ElevenLabs MCP server (audio/image result cards) call the server's app-only save_view_state tool when they render. T3 Code shows an approval dialog for each call:

Approval dialog for Save view state

Every card asks separately, and it asks again each time the card renders, so a thread with 5+ generated sounds turns into a stack of dialogs. Declining breaks the card's state; approving doesn't stick.

Why

McpAppRequests.toolInfo lets an app call skip the prompt only when the tool has readOnlyHint: true. save_view_state is declared with _meta.ui.visibility: ["app"]: only the app can call it, the model never sees it, and it is the app's own state plumbing. It isn't marked read-only, so it always prompts.

Expected

App-only tools that aren't marked destructive run without a prompt. Tools the model can call, and destructive tools, still ask.

Steps

  1. Connect the ElevenLabs MCP server to Claude or Codex.
  2. Ask for a few speech generations so several result cards render.
  3. Each card opens "Allow elevenlabs to run Save view state?".

m1trenv0 avatar Nov 24 '26 19:11 m1trenv0

This is the same problem as #40446, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

juliusmarminge avatar Dec 02 '26 05:12 juliusmarminge