MCPcopy Create free account
hub / github.com/cyberagiinc/DevDocs / copyConfig

Function copyConfig

components/MCPServerStatus.tsx:107–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 };
106
107 const copyConfig = () => {
108 navigator.clipboard.writeText(JSON.stringify(exactConfig, null, 2))
109 .then(() => {
110 toast({
111 title: "Configuration Copied",
112 description: "Configuration copied to clipboard",
113 });
114 })
115 .catch((error) => {
116 console.error('Error copying config:', error);
117 toast({
118 title: "Error",
119 description: "Failed to copy configuration",
120 variant: "destructive",
121 });
122 });
123 };
124
125 return (
126 <div className="space-y-6">

Callers

nothing calls this directly

Calls 1

toastFunction · 0.90

Tested by

no test coverage detected