Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: Enable JIT compilation to fix MCP server memory allocation errors (#7072)
Louis970bdf8253b3
diff --git a/src-tauri/Entitlements.plist b/src-tauri/Entitlements.plistnew file mode 100644index 000000000..a55be0c89--- /dev/null+++ b/src-tauri/Entitlements.plist@@ -0,0 +1,10 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <!-- Required for Bun runtime to allocate executable memory for JIT compilation -->+ <!-- Without this, MCP servers fail with "Ran out of executable memory" error -->+ <key>com.apple.security.cs.allow-jit</key>+ <true/>+</dict>+</plist>\ No newline at end of filediff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.jsonindex d7d80f669..f50c0e5d9 100644--- a/src-tauri/tauri.macos.conf.json+++ b/src-tauri/tauri.macos.conf.json@@ -2,6 +2,9 @@"bundle": {"targets": ["app", "dmg"],"resources": ["resources/pre-install/**/*", "resources/LICENSE"],- "externalBin": ["resources/bin/bun", "resources/bin/uv"]+ "externalBin": ["resources/bin/bun", "resources/bin/uv"],+ "macOS": {+ "entitlements": "./Entitlements.plist"+ }}}