[Bug]: Claude MCP approval cards can't send a form's own "always" choice (Google Workspace MCP asks on every write) #49710
Note
🤖 Filed by Claude Opus 5.5 on behalf of the reporter
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- On a Claude thread, use an MCP server whose write tools ask for approval with a single-choice form that offers its own persistent grants. Google's Workspace MCP servers do this, e.g. Sheets
update_valuesonhttps://sheetsmcp.googleapis.com/mcp/v1:{ "message": "You are about to update values in the spreadsheet **\"<title>\"**.\n\n**Range:** `Sheet1!A5`", "requestedSchema": { "type": "object", "required": ["approval_choice"], "properties": { "approval_choice": { "type": "string", "title": "Allow this app to use update_values for this file?", "enum": ["ALLOW_ONCE", "ALLOW_RESOURCE_ALWAYS", "ALLOW_TOOL_ALWAYS", "DENY_ONCE"], "enumNames": ["Allow once", "Always allow for this file", "Always allow this tool", "Don't allow"] }} } } - The agent writes to a range. The card shows Cancel / Decline / Always allow this session / Approve. Choose Always allow this session.
- The agent writes to a different range of the same file.
Expected behavior#
The card lets me pick the server's own choices, or at least its "always" choice: Always allow for this file (ALLOW_RESOURCE_ALWAYS). The server would then remember the grant and stop asking for that tool on that file. Codex threads can already send a form's "always" choice: toMcpElicitationResponse maps acceptAlways to it via mcpElicitationPersistenceDecision.
Actual behavior#
- Approve and Always allow this session both send
ALLOW_ONCE(claudeMcpElicitationAcceptancealways builds the answer with"accept"). - The session grant is keyed on server name plus
message(grantKeyinClaudeAdapterV2.ts). Google's message names the range, so every write to a new range is a new card. In a session of a few dozen small writes (a monthly bookkeeping close), every write needed a click. - Nothing on a Claude thread can send
ALLOW_RESOURCE_ALWAYSorALLOW_TOOL_ALWAYS, so the server's own persistent grant can't be reached from T3.
Answering ALLOW_RESOURCE_ALWAYS once from a separate MCP client with the same client name works as designed: later writes with that tool to that file are not asked, while other tools on the file (e.g. batch_clear_values) still ask.
Impact#
Major degradation or frequent failure
Version or commit#
T3 Code 0.1.13 (desktop); same code on main at 333cad38 (0.1.15 nightly). Claude Code 2.1.337.
Environment#
macOS, Claude provider. Google's MCP servers are reached through an MCP proxy that forwards their elicitations unchanged.
Workaround#
Answer the server's form from another MCP client (with the same client name) once per tool and file.
Related#
- #38734: the session grant keyed on message text approves a different request with the same text.
- PR #39360: offers "Always allow this session" only when the form has a session choice. Google's form has none, so after it this form would offer only Approve and Decline, which is why a way to choose the form's own "always" options matters here.
tanstack-source added labelsbug
Sign in to join this conversation.