Skip to main content
Glama

Markdown Downloader

postbuild.js693 B
// Cross-platform post-build script import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const buildIndexPath = path.join(__dirname, '..', 'build', 'index.js'); // Only set executable permissions on Unix-like systems if (process.platform !== 'win32') { try { fs.chmodSync(buildIndexPath, '755'); console.log('Set executable permissions on build/index.js'); } catch (error) { console.error('Error setting executable permissions:', error); } } else { console.log('Skipping chmod on Windows platform'); } console.log('Post-build tasks completed');

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/dazeb/markdown-downloader'

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