Request an invite
Docs menu

osmates remote set

Turn MCP over HTTP on this Mac, This Network, the tailnet browser or Cloud Clients on or off.

Usage
osmates remote set <part> <state> [--json]

set local on listens on 127.0.0.1:7330 alone, out of reach of machines and other computers. set network on listens on port 7331 of every interface for your paired Macs alone, and announces this Mac as _osmates._tcp. Machines are shut out before any TLS.

set tailnet on serves HTTPS on port 7332 of this Mac's tailnet addresses, with a certificate Tailscale issues; the tailnet must issue HTTPS certificates. set cloud-clients on needs the tailnet browser and Funnel in the tailnet's policy. It adds a funnel from port 8443 to 127.0.0.1:7333, unless that port serves something else.

off closes the part and ends its sessions. set tailnet off also signs every browser out and turns Cloud Clients off.

Remote access: https://osmates.com/docs/remote

Examples

sh
osmates remote set local on
osmates remote set tailnet off

Arguments

<part>Required

What to turn on or off: local, network, tailnet or cloud-clients.

One of local, network, tailnet, cloud-clients.

<state>Required

on or off.

One of on, off.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/remote/set.json

cloudstring or objectRequired

One of off, starting, or an object that holds one key: serving or failed.

cloud.servingobject
cloud.failedobject
cloudGrantsintegerRequired
connectionsintegerRequired
deviceKeystring

One of needsPermission, denied, missing, unreadable.

fingerprintstring
helperRunningbooleanRequired
networkListeningbooleanRequired
networkProblemstring
pairedMacsintegerRequired
passkeysintegerRequired
reachedMacsintegerRequired
settingsobjectRequired
settings.cloudClientsbooleanRequired
settings.localbooleanRequired
settings.networkbooleanRequired
settings.tailnetbooleanRequired
tailnetstring or objectRequired

One of off, starting, or an object that holds one key: serving or failed.

tailnet.servingobject
tailnet.failedobject
tokensintegerRequired
urlstringRequired

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page