Skip to content

Commit 3f4519b

Browse files
authored
fix: add /opt/homebrew to macOS Seatbelt sandbox allowed paths (#29)
The Seatbelt sandbox profile was blocking access to Homebrew-installed Python libraries on Apple Silicon Macs, causing dyld errors when running AWS CLI commands via uvx. Add /opt/homebrew to: - SandboxConfig._default_read_paths() for Darwin - MacOSSeatbeltBackend.PROFILE_TEMPLATE read paths
1 parent cc6e802 commit 3f4519b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/aws_mcp_server/sandbox.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def _default_read_paths() -> list[str]:
161161
"/private/etc",
162162
"/var/run",
163163
"/dev",
164+
"/opt/homebrew",
164165
]
165166
return []
166167

@@ -473,6 +474,7 @@ class MacOSSeatbeltBackend(SandboxBackend):
473474
(subpath "/private/var/run")
474475
(subpath "/var/run")
475476
(subpath "/dev")
477+
(subpath "/opt/homebrew")
476478
(subpath "/Applications/Xcode.app")
477479
(literal "/")
478480
(literal "/private")

0 commit comments

Comments
 (0)