Skip to main content
Glama

Article Manager MCP Server

by joelmnz
watch-frontend.ts•969 B
#!/usr/bin/env bun import { watch } from 'fs'; import { spawn } from 'child_process'; let building = false; const build = () => { if (building) return; building = true; console.log('šŸ”Ø Building frontend...'); const proc = spawn('bun', ['run', 'build:frontend'], { stdio: 'inherit' }); proc.on('close', (code) => { building = false; if (code === 0) { console.log('āœ… Frontend built successfully'); } else { console.error('āŒ Frontend build failed'); } }); }; // Initial build build(); // Watch for changes const watcher = watch('./src/frontend', { recursive: true }, (eventType, filename) => { if (filename && (filename.endsWith('.tsx') || filename.endsWith('.ts') || filename.endsWith('.css'))) { console.log(`šŸ“ Changed: ${filename}`); build(); } }); console.log('šŸ‘€ Watching src/frontend for changes...'); // Handle cleanup process.on('SIGINT', () => { watcher.close(); process.exit(0); });

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/joelmnz/mcp-markdown-manager'

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