| title | thv logs | ||
|---|---|---|---|
| hide_title | true | ||
| description | Reference for ToolHive CLI command `thv logs` | ||
| last_update |
|
||
| slug | thv_logs | ||
| mdx |
|
Output the logs of an MCP server or manage log files
Output the logs of an MCP server managed by ToolHive, or manage log files.
By default, this command shows the logs from the MCP server container. Use --proxy to view the logs from the ToolHive proxy process instead.
Examples:
thv logs filesystem
thv logs filesystem --follow
thv logs filesystem --proxy
thv logs prune
thv logs [workload-name|prune] [flags]
-f, --follow Follow log output (only for workload logs) (default false)
-h, --help help for logs
-p, --proxy Show proxy logs instead of container logs (default false)
--debug Enable debug mode
- thv - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers
- thv logs prune - Delete log files from servers not currently managed by ToolHive