stop_server
Stop a running sudo-proxy daemon locally or on a remote host. Sends a stop request, waits for the socket to disappear, and removes stale tunnel sockets.
Instructions
Stop a running sudo-proxy daemon: sends a stop request over its socket; the daemon prints a shutdown notice on its terminal (no approval prompt is required), exits, and its terminal window — and SSH tunnel, for remote hosts — closes. host selects a remote daemon started via start_server; omit it for the local one. Returns a non-error 'not running' message if no socket exists; on success, confirms after briefly polling for the socket to disappear and removes any stale tunnel socket. If the target runs a sudo-proxy version that predates remote stop, returns an error asking you to press q or Ctrl+C in that daemon's terminal instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Host whose daemon to stop (omit for the local daemon) |