Skip to main content
Glama

Vibe Check MCP

cursor.ts1.35 kB
import { join } from 'node:path'; import os from 'node:os'; import { ClientAdapter, JsonRecord, MergeOpts, MergeResult, expandHomePath, mergeIntoMap, pathExists, readJsonFile, writeJsonFileAtomic, } from './shared.js'; const locateCursorConfig = async (customPath?: string): Promise<string | null> => { if (customPath) { return expandHomePath(customPath); } const home = os.homedir(); const candidate = join(home, '.cursor', 'mcp.json'); if (await pathExists(candidate)) { return candidate; } return null; }; const readCursorConfig = async (path: string, raw?: string): Promise<JsonRecord> => { return readJsonFile(path, raw); }; const mergeCursorEntry = (config: JsonRecord, entry: JsonRecord, options: MergeOpts): MergeResult => { return mergeIntoMap(config, entry, options, 'mcpServers'); }; const writeCursorConfigAtomic = async (path: string, data: JsonRecord): Promise<void> => { await writeJsonFileAtomic(path, data); }; const adapter: ClientAdapter = { locate: locateCursorConfig, read: readCursorConfig, merge: mergeCursorEntry, writeAtomic: writeCursorConfigAtomic, describe() { return { name: 'Cursor', pathHint: '~/.cursor/mcp.json', notes: 'Open Cursor Settings → MCP Servers if the file does not exist yet.', }; }, }; export default adapter;

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/PV-Bhat/vibe-check-mcp-server'

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