Skip to main content
Glama
prompt.ts322 B
import path from "node:path"; export function createAttachmentReference(filePath: string): string { const absolutePath = path.resolve(filePath).replace(/\\/g, "/"); if (/\s|"/u.test(absolutePath)) { const escaped = absolutePath.replace(/"/g, '\\"'); return `@"${escaped}"`; } return `@${absolutePath}`; }

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/ah-wq/mcp-vision-relay'

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