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
package cmd
import "testing"
func TestMCPDoctorRejectsNonLoopbackHTTP(t *testing.T) {
oldTransport := mcpOpts.transport
oldAddr := mcpOpts.addr
t.Cleanup(func() {
mcpOpts.transport = oldTransport
mcpOpts.addr = oldAddr
})
mcpOpts.transport = "http"
mcpOpts.addr = "0.0.0.0:8766"
if err := runMCPDoctor(mcpDoctorCmd, nil); err == nil {
t.Fatal("runMCPDoctor accepted non-loopback HTTP address")
}
}