Skip to main content
Glama

Advanced Trello MCP Server

build.js•1.65 kB
#!/usr/bin/env node /** * Cross-platform build script * Compiles TypeScript and adds shebang to the output file */ const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const BUILD_DIR = path.join(__dirname, '../build'); const INDEX_FILE = path.join(BUILD_DIR, 'index.js'); const SHEBANG = '#!/usr/bin/env node\n'; console.log('šŸ”Ø Building project...\n'); try { // Step 1: Compile TypeScript console.log('šŸ“¦ Compiling TypeScript...'); execSync('tsc', { stdio: 'inherit' }); console.log('āœ… TypeScript compilation successful\n'); // Step 2: Add shebang to index.js console.log('šŸ”§ Adding shebang to index.js...'); if (fs.existsSync(INDEX_FILE)) { const content = fs.readFileSync(INDEX_FILE, 'utf8'); // Only add shebang if it doesn't already exist if (!content.startsWith('#!')) { fs.writeFileSync(INDEX_FILE, SHEBANG + content, 'utf8'); console.log('āœ… Shebang added successfully\n'); } else { console.log('ā„¹ļø Shebang already exists\n'); } // Step 3: Make file executable (Unix-like systems only) try { fs.chmodSync(INDEX_FILE, '755'); console.log('āœ… File permissions set (Unix/Linux/macOS)\n'); } catch (error) { // chmod fails on Windows, which is expected and fine console.log('ā„¹ļø Skipping chmod (Windows environment)\n'); } } else { throw new Error(`Build file not found: ${INDEX_FILE}`); } console.log('šŸŽ‰ Build completed successfully!\n'); process.exit(0); } catch (error) { console.error('āŒ Build failed:', error.message); process.exit(1); }

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/adriangrahldev/advanced-trello-mcp-server'

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