Repository navigation
Run on host, access from sbx? #497
Replies: 2 comments
|
The host/guest architecture is possible, but XcodeBuildMCP does not currently expose an HTTP transport itself. The current server constructs The simplest bridge is usually stdio over SSH, which avoids adding an HTTP proxy. Configure the MCP command inside the sbx guest as the equivalent of: {
"command": "ssh",
"args": [
"-T",
"mac-builder",
"/absolute/path/to/xcodebuildmcp",
"mcp"
]
}The MCP client still sees a normal local stdio process ( A stdio-to-Streamable-HTTP proxy on the Mac is another option, but it is an extra component rather than a built-in XcodeBuildMCP feature. If you use one, bind it only to an interface reachable from the microVM, require authentication/TLS, and do not expose the raw endpoint publicly. sbx must also allow outbound access to that host address; guest Two operational details matter whichever bridge you choose:
So: yes, the split is viable, but today it needs SSH-stdio or a transport proxy; direct HTTP is not supported by XcodeBuildMCP itself. |
|
If keeping the agent off your own Mac is the reason for sbx, there's one more variation of the SSH bridge above: point it at a throwaway cloud Mac instead of the host. Xcode then runs somewhere the agent can't hurt, and your machine stays out of it entirely. Disclosure: I built NoMac, which is one of those (a macOS VM per session, deleted when it stops). Inside the sbx guest, install {
"command": "ssh",
"args": ["-T", "nomac", "npx", "-y", "mobilebuildmcp@latest", "mcp"]
}The guest needs outbound HTTPS to nomac.app. And the same caveat as with the host applies: the server works on the Mac's copy of the project, so sync it first ( |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I usually use sbx to safely run my agents in YOLO mode. Of course sbx spawns a Linux microVM, so it can't access my Mac applications (like Xcode).
I was wondering: Is it possible to run XcodeBuildMCP on the host (macOS), and then run my agent inside sbx and have it "call out" to the MCP server running on the host using HTTP? Has anyone tried that?
All reactions