mesh_serve
Register a named procedure on the mesh; each inbound call runs the configured shell command with the caller's JSON payload on stdin and uses stdout as the JSON reply.
Instructions
Advertise a procedure on the mesh, answered by a local shell command run once per inbound call (its stdin is the caller's JSON payload, its stdout is the reply). Starts this process's own serve-daemon on first use. THIS IS A STANDING INBOUND SURFACE, not a one-shot action: once registered, any mesh caller can trigger the command repeatedly until mesh_unserve is called or this process exits. Never register a command you would not want a stranger able to run repeatedly on this machine. Pair with mesh_unserve to stop serving deliberately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exec | Yes | Shell command to run once per inbound call. Receives the call's JSON payload on stdin; its entire stdout is parsed as the JSON reply (empty stdout replies null). | |
| host | No | Station to connect through, "host[:port]". Defaults to station-de-frankfurt.macula.io:4433. | |
| procedure | Yes | The procedure name to advertise, e.g. "my_agent.summarize". | |
| exec_timeout_seconds | No | How long one invocation may run before it's killed (default 10, max 60). |