You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct MCP clients without form elicitation get an opaque 'nodeRepl.createElicitation is unavailable' instead of the 'lcu apps allow' fallback #92
Registering lcu as a plain stdio MCP server in a harness whose MCP client does not declare the elicitation capability (observed in Amp's local MCP integration; Amp has no LCU adapter) makes the first touch of any not-yet-allowed app fail with:
nodeRepl.createElicitation is unavailable because the MCP client does not support form elicitation
e.g. on cua.getApp("Google Chrome"). The model gets no hint about what to do next, so LCU is effectively unusable from that harness unless the person pre-allows apps out of band.
Environment: LCU 0.15.0 (ChatGPT darwin 26.1117.41037, CUA local), macOS on Apple Silicon.
What already exists
The Grok, Junie and Antigravity adapters already handle a host that cannot show the approval prompt: they cancel (not decline) the request, note the app, and tell the model to ask the person to run lcu apps allow <App> (Touch ID / password), with the revoke advice. Grok even checks getClientCapabilities()?.elicitation before trying. The direct / generic MCP server path has no such check, so the runtime's raw error surfaces instead.
Request
When the connected MCP client does not advertise elicitation (or elicitation.form), apply the same fallback on the generic server path: return the existing "this host can't show LCU's per-app prompt — run lcu apps allow <App>, then retry; offer lcu apps revoke <App> afterwards" result instead of the runtime error. Optionally have lcu doctor / lcu status mention that approvals will need lcu apps allow for such clients.
Workaround we use today: a small host-side plugin built on adapters/client.mjs (createCuaClient + onElicitation + nativeAppApprovalOptions) that turns the approval into the harness's own select prompt. That works well, but anyone who registers the bare MCP server hits the opaque error first.
Activity