Smithery Server Search
smithery/smithery-server-searchFreeBlock
A searchable combobox for finding and connecting to MCP servers from the Smithery registry.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/clavia-inc/openchat/main/public/r/smithery-server-search.jsonSource
1"use client";23import {4 QueryClient,5 QueryClientContext,6 QueryClientProvider,7} from "@tanstack/react-query";8import { type ReactNode, useContext, useState } from "react";910// Shared default QueryClient for all Smithery components11let sharedQueryClient: QueryClient | null = null;1213function getSharedQueryClient() {14 if (!sharedQueryClient) {15 sharedQueryClient = new QueryClient({16 defaultOptions: {17 queries: { staleTime: 60 * 1000 },18 },19 });20 }21 return sharedQueryClient;22}2324/**25 * Wrapper that auto-provides QueryClient if none exists.26 * - If a QueryClientProvider already exists, uses that client (user's takes precedence)27 * - If no provider exists, creates a shared client for Smithery components28 */29export function WithQueryClient({ children }: { children: ReactNode }) {30 // Check if we're already inside a QueryClientProvider31 const existingClient = useContext(QueryClientContext);3233 // Create our own client only if needed (lazy init, stable across renders)34 const [fallbackClient] = useState(() => getSharedQueryClient());3536 // If there's already a client, just render children37 if (existingClient) {38 return <>{children}</>;39 }4041 // Otherwise, provide our own client42 return (43 <QueryClientProvider client={fallbackClient}>44 {children}45 </QueryClientProvider>46 );47}
What it pulls in
npm packages
Other registry items
Files it writes
More from smithery
All 10 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Smitherysmithery | smithery | Blocks | Free | 9 deps · 11 files | |
| Smithery Connection Contextsmithery-connection-context | smithery | Blocks | Free | no deps | |
| Smithery Connectionssmithery-connections | smithery | Blocks | Free | 8 deps · 9 files | |
| Smithery Schema Formsmithery-schema-form | smithery | Blocks | Free | 1 dep | |
| Smithery Tokenssmithery-tokens | smithery | Blocks | Free | 3 deps | |
| Smithery Tool Cardsmithery-tool-card | smithery | Blocks | Free | 5 deps · 4 files | |
| Smithery Tool Detail Dialogsmithery-tool-detail-dialog | smithery | Blocks | Free | 5 deps · 3 files | |
| Smithery Tools Panelsmithery-tools-panel | smithery | Blocks | Free | 5 deps · 5 files |
