From 5ad2c3c146d4002a7221bfb027ecf1d26e9a9b03 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Thu, 1 May 2025 09:12:29 -0600 Subject: [PATCH] feat(client): Add PingTab when no server capabilities The TypeScript SDK (and presumably others) quite possibly support at least pings out of the box so including the ping tab even if a server doesn't have capabilities seems to make sense. --- client/src/App.tsx | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 7880b2a..5ccc4d2 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -575,11 +575,23 @@ const App = () => { {!serverCapabilities?.resources && !serverCapabilities?.prompts && !serverCapabilities?.tools ? ( -
-

- The connected server does not support any MCP capabilities -

-
+ <> +
+

+ The connected server does not support any MCP capabilities +

+
+ { + void sendMCPRequest( + { + method: "ping" as const, + }, + EmptyResultSchema, + ); + }} + /> + ) : ( <>