Skip to content

Agent Mesh

refactor(mcp): remove redundant string check in fetchRemoteToolCatalogue

Antonio Ojea4804bb1dd713
diff --git a/cmd/sam-node/mcp_handlers.go b/cmd/sam-node/mcp_handlers.go
index c336c5f5..f780d1c9 100644
--- a/cmd/sam-node/mcp_handlers.go
+++ b/cmd/sam-node/mcp_handlers.go
@@ -357,9 +357,6 @@ func (n *SamNode) fetchRemoteToolCatalogue(ctx context.Context, targetPeer peer.
continue
}
t.Name = svc.Name + "." + t.Name
- if !strings.Contains(t.Name, ".") {
- continue
- }
if serviceNameFilter != "" && !strings.HasPrefix(t.Name, serviceNameFilter+".") {
continue
}