Smithery Connection Context
smithery/smithery-connection-contextFreeBlock
Context provider and hook for sharing connection configuration between Smithery components.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/clavia-inc/openchat/main/public/r/smithery-connection-context.jsonSource
1"use client";23import { createContext, useContext } from "react";45// Context for connection config - consumed by ToolDetailDialog for code generation6export interface ConnectionConfig {7 mcpUrl: string;8 apiKey: string;9 namespace: string;10 connectionId: string;11}1213export const ConnectionConfigContext = createContext<ConnectionConfig | null>(14 null,15);1617export function useConnectionConfig() {18 return useContext(ConnectionConfigContext);19}
Files it writes
More from smithery
All 10 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Smitherysmithery | smithery | Blocks | Free | 9 deps · 11 files | |
| Smithery Connectionssmithery-connections | smithery | Blocks | Free | 8 deps · 9 files | |
| Smithery Schema Formsmithery-schema-form | smithery | Blocks | Free | 1 dep | |
| Smithery Server Searchsmithery-server-search | smithery | Blocks | Free | 3 deps · 3 files | |
| 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 |
