Skip to main content
Glama

Cursor MCP Server

by johnneerdael
windows.js790 B
import path from 'node:path'; import fs from 'node:fs'; import {fileURLToPath} from 'node:url'; import {createRequire} from 'node:module'; import preGyp from '@mapbox/node-pre-gyp'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const require = createRequire(import.meta.url); const bindingPath = preGyp.find(path.resolve(path.join(__dirname, '../package.json'))); const addon = (fs.existsSync(bindingPath)) ? require(bindingPath) : { getActiveWindow() {}, getOpenWindows() {}, }; export async function activeWindow() { return addon.getActiveWindow(); } export function activeWindowSync() { return addon.getActiveWindow(); } export function openWindows() { return addon.getOpenWindows(); } export function openWindowsSync() { return addon.getOpenWindows(); }

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/johnneerdael/multiplatform-cursor-mcp'

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