Skip to main content
Glama

Cursor MCP Server

by johnneerdael
factory.js1.15 kB
import { WindowsWindowManager } from './windows-manager.js'; import { MacOSWindowManager } from './macos-manager.js'; import { LinuxWindowManager } from './linux-manager.js'; import { exec } from 'child_process'; import { promisify } from 'util'; const execAsync = promisify(exec); export class WindowManagerFactory { static async checkDependencies() { if (process.platform === 'linux') { try { await execAsync('which xdotool'); } catch (error) { throw new Error('xdotool is required for Linux window management. Please install it using your package manager (e.g., apt-get install xdotool)'); } } } static async create() { await this.checkDependencies(); switch (process.platform) { case 'win32': return new WindowsWindowManager(); case 'darwin': return new MacOSWindowManager(); case 'linux': return new LinuxWindowManager(); default: throw new Error(`Unsupported platform: ${process.platform}`); } } }

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