Skip to main content
Glama

Dodo Payments

Official
by dodopayments
fix-index-exports.cjs534 B
const fs = require('fs'); const path = require('path'); const indexJs = process.env['DIST_PATH'] ? path.resolve(process.env['DIST_PATH'], 'index.js') : path.resolve(__dirname, '..', '..', 'dist', 'index.js'); let before = fs.readFileSync(indexJs, 'utf8'); let after = before.replace( /^(\s*Object\.defineProperty\s*\(exports,\s*["']__esModule["'].+)$/m, `exports = module.exports = function (...args) { return new exports.default(...args) } $1`.replace(/^ /gm, ''), ); fs.writeFileSync(indexJs, after, 'utf8');

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/dodopayments/dodopayments-node'

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