Skip to main content
Glama
add-shebang.cjs443 B
const fs = require('fs'); const path = require('path'); const filePath = path.resolve(__dirname, '../dist/index.js'); const shebang = '#!/usr/bin/env node\n'; let content = fs.readFileSync(filePath, 'utf-8'); if (!content.startsWith(shebang)) { content = shebang + content; fs.writeFileSync(filePath, content); console.log('Shebang added to dist/index.js'); } else { console.log('Shebang already exists in dist/index.js'); }

Latest Blog Posts

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/Waldzell-Agentics/mcp-server'

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