From 444f87f00365ff1c7a4fd579fa53d98e0f23bf2d Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Wed, 4 Jun 2025 12:39:22 +0300 Subject: [PATCH] Add content for serving over a unix socket Signed-off-by: Radoslav Dimitrov --- docs/toolhive/how-to/api-server.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/toolhive/how-to/api-server.md b/docs/toolhive/how-to/api-server.md index 051b164..cf31938 100644 --- a/docs/toolhive/how-to/api-server.md +++ b/docs/toolhive/how-to/api-server.md @@ -56,6 +56,18 @@ address to bind to using the `--host` option: thv serve --host ``` +## UNIX socket support + +The API server can also be exposed via a UNIX socket instead of a TCP port. Use +the `--socket` option to specify a socket path: + +```bash +thv serve --socket /tmp/toolhive.sock +``` + +When using a UNIX socket, the `--socket` argument overrides the host:port +address configuration. + ## API documentation See the [ToolHive API documentation](../reference/api.mdx) for details on