xonecas.io
60255
Zn

Zoea-Nova / commit 4b55c8e

fix(mcp): log upstream tool list failures

Expose upstream tool list errors without breaking local tool access.

xonecas2026-02-05 4b55c8ed381974fc4993b7f00abbc63968044206 parent ca24980

1 file changed

internal/mcp/proxy.go+5−3
@@ -5,6 +5,8 @@ import (
55 "encoding/json"
66 "fmt"
77 "sync"
8+
9+ "github.com/rs/zerolog/log"
810 )
911
1012 // ToolHandler is a function that handles a tool call.
@@ -90,9 +92,9 @@ func (p *Proxy) ListTools(ctx context.Context) ([]Tool, error) {
9092 if p.upstream != nil {
9193 upstreamTools, err := p.upstream.ListTools(ctx)
9294 if err != nil {
93- // Log but don't fail - upstream may be temporarily unavailable
94- // In production, we'd want proper logging here
95- _ = err
95+ log.Warn().
96+ Err(err).
97+ Msg("failed to list upstream tools")
9698 } else {
9799 tools = append(tools, upstreamTools...)
98100 }