The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
mcp: test the disconnect summary after an entry was left alone
Claude06139989ae8a
diff --git a/cli/beacon/cmd/mcp_connect_test.go b/cli/beacon/cmd/mcp_connect_test.goindex 61015a09..7781b1ba 100644--- a/cli/beacon/cmd/mcp_connect_test.go+++ b/cli/beacon/cmd/mcp_connect_test.go@@ -580,3 +580,22 @@ func TestMCPStatusCheckUsesTheRecordedURLWithoutAnEnrollment(t *testing.T) {t.Fatalf("err = %v\n%s", err, stdout)}}++func TestMCPDisconnectDoesNotSayNothingToRemoveAfterReportingAnEntry(t *testing.T) {+ fx := newMCPFixture(t, "cursor")+ if _, _, err := runMCP(t, "connect", "--url", fx.url, "--yes"); err != nil {+ t.Fatal(err)+ }+ path := filepath.Join(fx.home, ".cursor", "mcp.json")+ data, _ := os.ReadFile(path)+ if err := os.WriteFile(path, []byte(strings.Replace(string(data), fx.url, "https://theirs.example", 1)), 0o600); err != nil {+ t.Fatal(err)+ }+ stdout, _, err := runMCP(t, "disconnect")+ if err != nil {+ t.Fatal(err)+ }+ if !strings.Contains(stdout, "left alone") || strings.Contains(stdout, "Nothing to remove") {+ t.Fatalf("output:\n%s", stdout)+ }+}