Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): MCP session grants apply only to forms that offer one #39360

Openshivamhwp(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/39360/headopened View on GitHub

Showing 4 changed files with 137 additions and 18 deletions (loading 1).

x
0 of 4 viewed, 4 left
86 additions and 5 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -7545,6 +7545,21 @@
requestedSchema: { type: "object", properties: {} },
title: "Deploy",
+ const sessionOffer: ElicitationRequest = {
+ serverName: "computer-use",
+ message: "Allow Safari to click?",
+ mode: "form",
+ requestedSchema: {
+ type: "object",
+ properties: {
+ approval: {
+ type: "string",
+ oneOf: [{ const: "session", title: "Allow for this session" }],
+ },
+ },
+ },
+ title: "Computer Use",
+ };
const startElicitationTurn = Effect.fnUntraced(function* (
options?: Parameters<typeof makeWakeHarnessWithOptions>[0],
@@ -7599,10 +7614,18 @@
options: [
{ decision: "cancel", label: "Cancel" },
{ decision: "decline", label: "Decline" },
- { decision: "acceptForSession", label: "Always allow this session" },
{ decision: "accept", label: "Approve" },