Dify MCP Server

  • bin
#!/usr/bin/env node const path = require("path"); const { spawn } = require("child_process"); // Get the directory where the server is installed const serverDir = path.resolve(__dirname, ".."); // Start the server const server = spawn("node", [path.join(serverDir, "dist/clickup-server.js")], { stdio: "inherit", env: { ...process.env, NODE_ENV: process.env.NODE_ENV || "production", }, }); // Handle process termination process.on("SIGTERM", () => { server.kill("SIGTERM"); }); process.on("SIGINT", () => { server.kill("SIGINT"); }); server.on("exit", (code) => { process.exit(code); });