Skip to main content
Glama
copy-to-clipboard.ts362 B
import { toast } from "sonner" export async function copyToClipboard(text: string): Promise<boolean> { try { await navigator.clipboard.writeText(text) toast.success("Copied to clipboard") return true } catch (error) { console.error("Failed to copy to clipboard:", error) toast.error("Failed to copy to clipboard") return false } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/myeong-ga/research-agent-mcp-0.36-pro-preview-06-01'

If you have feedback or need assistance with the MCP directory API, please join our Discord server