diff --git a/pkgs/mcpx/internal/e2e/real_memory_test.go b/pkgs/mcpx/internal/e2e/real_memory_test.go index ecad10a53f..9925a625d2 100644 --- a/pkgs/mcpx/internal/e2e/real_memory_test.go +++ b/pkgs/mcpx/internal/e2e/real_memory_test.go @@ -29,7 +29,7 @@ func TestRealMemoryServerRoundTrip(t *testing.T) { } }`, server, memoryFile) e := newEnv(t, cfg) - e.setenv("MCPX_ELICIT_CONFIRM_DESTRUCTIVE=true", "MCPX_ELICIT_ASK_TIMEOUT=60s") + e.setenv("MCPX_POLICY_WRITE=ask", "MCPX_ELICIT_ASK_TIMEOUT=60s") e.run("ls") out := realConfirmedCall(t, e, "call", "memory.create_entities", `{"entities":[{"name":"realsoftware-probe","entityType":"probe","observations":["created by the mcpx realsoftware subset"]}]}`) diff --git a/pkgs/mcpx/internal/e2e/real_time_test.go b/pkgs/mcpx/internal/e2e/real_time_test.go index 1aa861258c..7c5608589d 100644 --- a/pkgs/mcpx/internal/e2e/real_time_test.go +++ b/pkgs/mcpx/internal/e2e/real_time_test.go @@ -35,13 +35,13 @@ func realConfig(serverPath, namespace, description string, args ...string) strin }`, namespace, serverPath, argsJSON, description) } -// realConfirmedCall runs one mcpx call that mcpx's destructive-action -// gate will stop for confirmation, and confirms it the way a person at -// the terminal would: by answering the elicitation question. Real -// servers annotate their mutating tools destructiveHint=true (memory's -// create_entities, filesystem's write_file); the fake's tools mostly do -// not, so this path is precisely what the per-PR suite cannot see — -// unconfirmed, the call is cancelled and nothing is written. +// realConfirmedCall runs one mcpx call that the active write policy stops +// for confirmation, and confirms it the way a person at the terminal would: +// by answering the elicitation question. The real filesystem test exercises +// destructiveHint=true via the destructive-confirmation floor; the memory +// server marks create_entities destructiveHint=false, so its round-trip test +// selects policy.write=ask instead. This real-server path is precisely what +// the per-PR suite cannot see — unconfirmed, the call is cancelled. func realConfirmedCall(t *testing.T, e *env, args ...string) string { t.Helper() done := make(chan string, 1)