#How do I setup AppleScript MCP in OpenShell which runs on my local device?

3 messages · Page 1 of 1 (latest)

reef atlas
#

It's in a sandbox, so not sure how they will communicate.

slim stumpBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

night sunBOT
#

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:

  1. Run that agent unsandboxed on your Mac
    Best if you want local AppleScript control.

  2. Expose the MCP server over HTTP/SSE/streamable-http
    Then the sandbox can connect to it, if the endpoint is reachable.

  3. Run the AppleScript side on a macOS host/VM/node, not inside OpenShell