import type * as esbuild from 'esbuild'
/**
* Causes esbuild to exit immediately with an error code.
*/
export const onErrorPlugin: esbuild.Plugin = {
name: 'onErrorPlugin',
setup(build) {
build.onEnd((result) => {
// if there were errors found on the build
if (result.errors.length > 0) {
if (process.env.WATCH !== 'true') {
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/prisma/prisma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server