@@ -51,7 +51,7 @@ func TestNewErrorResponse(t *testing.T) {
5151 }
5252
5353 func TestProxyLocalTools(t *testing.T) {
54- proxy := NewProxy("") // No upstream
54+ proxy := NewProxy(nil) // No upstream
5555
5656 // Register a local tool
5757 tool := Tool{
@@ -95,7 +95,7 @@ func TestProxyLocalTools(t *testing.T) {
9595 }
9696
9797 func TestProxyToolNotFound(t *testing.T) {
98- proxy := NewProxy("") // No upstream
98+ proxy := NewProxy(nil) // No upstream
9999
100100 ctx := context.Background()
101101 result, err := proxy.CallTool(ctx, CallerContext{}, "nonexistent", nil)
@@ -108,12 +108,12 @@ func TestProxyToolNotFound(t *testing.T) {
108108 }
109109
110110 func TestProxyHasUpstream(t *testing.T) {
111- proxyNoUpstream := NewProxy("")
111+ proxyNoUpstream := NewProxy(nil)
112112 if proxyNoUpstream.HasUpstream() {
113113 t.Error("expected no upstream")
114114 }
115115
116- proxyWithUpstream := NewProxy("http://example.com/mcp")
116+ proxyWithUpstream := NewProxy(NewClient("http://example.com/mcp"))
117117 if !proxyWithUpstream.HasUpstream() {
118118 t.Error("expected upstream")
119119 }
@@ -250,13 +250,9 @@ func TestOrchestratorTools(t *testing.T) {
250250 }
251251
252252 // Create proxy and register tools
253- proxy := NewProxy("")
253+ proxy := NewProxy(nil)
254254 RegisterOrchestratorTools(proxy, orchestrator)
255255
256- if proxy.LocalToolCount() != 8 {
257- t.Errorf("expected 8 local tools, got %d", proxy.LocalToolCount())
258- }
259-
260256 ctx := context.Background()
261257
262258 // Test zoea_swarm_status
@@ -289,7 +285,7 @@ func TestZoeaListMysesPayloadMinimal(t *testing.T) {
289285 }
290286
291287 // Create proxy and register tools
292- proxy := NewProxy("")
288+ proxy := NewProxy(nil)
293289 RegisterOrchestratorTools(proxy, orchestrator)
294290
295291 ctx := context.Background()