Merge pull request #371 from kentcdodds/patch-2

feat(client): Add PingTab when no server capabilities
This commit is contained in:
Ola Hungerford 2025-05-06 21:04:47 -07:00 • committed by GitHub
commit 3e41520688
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -575,11 +575,24 @@ const App = () => {
{!serverCapabilities?.resources &&
!serverCapabilities?.prompts &&
!serverCapabilities?.tools ? (
<div className="flex items-center justify-center p-4">
<p className="text-lg text-gray-500">
The connected server does not support any MCP capabilities
</p>
</div>
<>
<div className="flex items-center justify-center p-4">
<p className="text-lg text-gray-500">
The connected server does not support any MCP
capabilities
</p>
</div>
<PingTab
onPingClick={() => {
void sendMCPRequest(
{
method: "ping" as const,
},
EmptyResultSchema,
);
}}
/>
</>
) : (
<>
<ResourcesTab