#How do I setup AppleScript MCP in OpenShell which runs on my local device?
3 messages · Page 1 of 1 (latest)
Short version, if the agent is running in an OpenShell sandbox, a local AppleScript MCP on your Mac will not be reachable over stdio.
Why:
- OpenClaw’s stdio MCP launches a child process where the runtime lives
- OpenShell sandboxes run tool execution in the sandbox, not on your Mac
- AppleScript is macOS-only, so a Linux/OpenShell sandbox cannot run it directly
So the workable options are:
-
Run that agent unsandboxed on your Mac
Best if you want local AppleScript control. -
Expose the MCP server over HTTP/SSE/streamable-http
Then the sandbox can connect to it, if the endpoint is reachable. -
Run the AppleScript side on a macOS host/VM/node, not inside OpenShell