From ca8b3986503b8202ce456367fb214102583fccda Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 3 Nov 2026 19:09:02 +0000 Subject: [PATCH] chore(mcp): drop stale welcome-JSON comments Assisted-by: Claude:claude-sonnet-5-5 go-test Signed-off-by: Ettore Di Giacinto (cherry picked from commit 92283865d720f7cee08391ed2ea4816578538174) --- pkg/mcp/localaitools/coverage_test.go | 2 +- pkg/mcp/localaitools/httpapi/client_test.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/mcp/localaitools/coverage_test.go b/pkg/mcp/localaitools/coverage_test.go index b49da20fc0..f94082b9d8 100644 --- a/pkg/mcp/localaitools/coverage_test.go +++ b/pkg/mcp/localaitools/coverage_test.go @@ -22,7 +22,7 @@ import ( // "(none)" is a deliberate sentinel for tools whose data is not exposed // over a single REST endpoint (e.g. system_info aggregates data the // inproc client picks up directly from services). The httpapi.Client may -// approximate via the welcome JSON; the test still requires an entry so +// compose it from several routes; the test still requires an entry so // the contributor explicitly acknowledges the asymmetry. var toolToHTTPRoute = map[string]string{ // Read-only tools. diff --git a/pkg/mcp/localaitools/httpapi/client_test.go b/pkg/mcp/localaitools/httpapi/client_test.go index 92d9d4bd85..d361e9f220 100644 --- a/pkg/mcp/localaitools/httpapi/client_test.go +++ b/pkg/mcp/localaitools/httpapi/client_test.go @@ -232,9 +232,7 @@ var _ = Describe("httpapi.Client against the LocalAI admin REST surface", func() info, err := c.SystemInfo(ctx) Expect(err).ToNot(HaveOccurred()) Expect(info.Version).To(Equal("v0.0.0-test")) - // /system.backends carries the installed set; /backends is the - // authoritative list. Both are exercised; the test asserts the - // union is non-empty and contains the known backends. + // The installed backends come from /backends. Expect(info.InstalledBackends).To(ContainElement("llama-cpp")) Expect(info.InstalledBackends).To(ContainElement("whisper")) // loaded_models comes from /system