fix: MCP server cannot start on Window (#187)

This commit is contained in:
sigoden
2025-05-08 11:37:11 +08:00
committed by GitHub
parent e5f9a9806c
commit afe3670038
+1 -1
View File
@@ -25,7 +25,7 @@ start() {
fi
echo "Start MCP Bridge server..."
echo "Install node dependencies..." > "$MCP_LOG_FILE"
npm install --prefix "$ROOT_DIR/mcp/bridge" 1>/dev/null 2>> "$MCP_LOG_FILE"
(cd "$ROOT_DIR/mcp/bridge" && npm install 1>/dev/null 2>> "$MCP_LOG_FILE")
nohup node "$index_js" "$llm_functions_dir" >> "$MCP_LOG_FILE" 2>&1 &
wait-for-server
echo "Merge MCP tools into functions.json"