Skip to main content
Glama
build-cli.js812 B
import * as esbuild from "esbuild"; import { chmod } from "fs/promises"; import { dirname, join } from "path"; import { fileURLToPath } from "url"; const __dirname = dirname(fileURLToPath(import.meta.url)); async function build() { await esbuild.build({ entryPoints: [join(__dirname, "start-server.ts")], bundle: true, minify: true, platform: "node", target: "node18", format: "esm", outfile: "bin/cli.mjs", banner: { js: "#!/usr/bin/env node\nimport { createRequire } from 'module';const require = createRequire(import.meta.url);", // see https://github.com/evanw/esbuild/pull/2067 }, external: ["util"], }); // Make the output file executable await chmod("./bin/cli.mjs", 0o755); } build().catch((err) => { console.error(err); process.exit(1); });

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/anyproto/anytype-mcp'

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