Skip to main content
Glama

Searchcraft MCP Server

Official
build.mjs1.76 kB
import * as esbuild from "esbuild"; import { readFileSync } from "fs"; // Read package.json to get version const packageJson = JSON.parse(readFileSync("package.json", "utf-8")); async function build() { try { // Build HTTP server await esbuild.build({ bundle: true, platform: "node", target: "node18", format: "esm", sourcemap: true, tsconfig: "tsconfig.json", define: { "__PACKAGE_VERSION__": JSON.stringify(packageJson.version), }, external: [ "@modelcontextprotocol/*", "express", "zod", "dotenv/config", ], entryPoints: ["src/index.ts"], outfile: "dist/server.js", }); // Build stdio server await esbuild.build({ bundle: true, platform: "node", target: "node18", format: "esm", sourcemap: true, tsconfig: "tsconfig.json", define: { "__PACKAGE_VERSION__": JSON.stringify(packageJson.version), }, external: [ "@modelcontextprotocol/*", "zod", "dotenv/config", ], entryPoints: ["src/stdio-server.ts"], outfile: "dist/stdio-server.js", }); console.log("✅ Build complete!"); console.log("📁 Output:"); console.log(" - dist/server.js (HTTP server)"); console.log(" - dist/stdio-server.js (stdio server for Claude Desktop)"); } catch (error) { console.error("❌ Build failed:", error); process.exit(1); } } build();

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/searchcraft-inc/searchcraft-mcp-server'

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