Skip to main content

thv logs

Output the logs of an MCP server or manage log files

Synopsis

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:

View logs of an MCP server

thv logs filesystem

Follow logs in real-time

thv logs filesystem --follow

View proxy logs instead of container logs

thv logs filesystem --proxy

Clean up old log files

thv logs prune

thv logs [workload-name|prune] [flags]

Options

  -f, --follow   Follow log output (only for workload logs)
-h, --help help for logs
-p, --proxy Show proxy logs instead of container logs

Options inherited from parent commands

      --debug   Enable debug mode

SEE ALSO

  • 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