Skip to main content
Glama
clipboard.ts343 B
import clipboard from 'clipboardy' export async function copyToClipboard(text: string): Promise<void> { try { await clipboard.write(text) } catch (error: unknown) { const message = error instanceof Error ? error.message : 'Unknown clipboard error' throw new Error(`Failed to copy prompt to clipboard: ${message}`) } }

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/raine/consult-llm-mcp'

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