From b8b32894750c8cb5b5de98de37e21459ef914fca Mon Sep 17 00:00:00 2001 From: olaservo Date: Sat, 1 Aug 2026 16:08:48 -0700 Subject: [PATCH] Advertise only the capability this server actually has The gem's default_capabilities advertises tools, prompts, resources and logging. This server has only tools; logging is additionally deprecated as of 2026-07-28 (SEP-2577). Passing capabilities: { tools: {} } makes server/discover honest. No listChanged flag, because change notifications at this revision are delivered over subscriptions/listen and this server does not serve it. Co-Authored-By: Claude Opus 5 --- weather-server-ruby/weather.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/weather-server-ruby/weather.rb b/weather-server-ruby/weather.rb index 1893d92..22d5761 100644 --- a/weather-server-ruby/weather.rb +++ b/weather-server-ruby/weather.rb @@ -206,7 +206,12 @@ end server = MCP::Server.new( name: "weather", version: "1.0.0", - tools: [GetAlerts, GetForecast] + tools: [GetAlerts, GetForecast], + # The gem otherwise advertises prompts, resources and logging as well. This + # server has only tools, and logging is deprecated as of 2026-07-28 + # (SEP-2577). No listChanged: change notifications are delivered over + # `subscriptions/listen`, which this server does not serve. + capabilities: { tools: {} } ) transport = MCP::Server::Transports::StdioTransport.new(server)