Skip to main content
Glama
by Ritesh-sudo
index.cjs1.02 kB
/* eslint-disable no-restricted-globals */ // type utils module.exports.defineConfig = (config) => config // proxy cjs utils (sync functions) Object.assign(module.exports, require('./dist/node-cjs/publicUtils.cjs')) // async functions, can be redirect from ESM build const asyncFunctions = [ 'build', 'createServer', 'preview', 'transformWithEsbuild', 'resolveConfig', 'optimizeDeps', 'formatPostcssSourceMap', 'loadConfigFromFile', 'preprocessCSS', ] asyncFunctions.forEach((name) => { module.exports[name] = (...args) => import('./dist/node/index.js').then((i) => i[name](...args)) }) // some sync functions are marked not supported due to their complexity and uncommon usage const unsupportedCJS = ['resolvePackageEntry', 'resolvePackageData'] unsupportedCJS.forEach((name) => { module.exports[name] = () => { throw new Error( `"${name}" is not supported in CJS build of Vite 4.\nPlease use ESM or dynamic imports \`const { ${name} } = await import('vite')\`.`, ) } })

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/Ritesh-sudo/MCPJobSearch'

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