Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/mcpx/internal/e2e/real_memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}]}`)
Expand Down
14 changes: 7 additions & 7 deletions pkgs/mcpx/internal/e2e/real_time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading