Skip to main content
Glama
+server.ts426 B
import { json, error } from '@sveltejs/kit' import type { RequestHandler } from './$types' import * as fs from 'node:fs/promises' export const GET: RequestHandler = async ({ url }) => { const filePath = url.searchParams.get('path') if (!filePath) { throw error(400, 'path is required') } try { await fs.access(filePath) return json({ exists: true }) } catch { return json({ exists: 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/DrumRobot/claude-sessions-mcp'

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