@@ -15,7 +15,7 @@ Run an MCP server
1515
1616Run an MCP server with the specified name, image, or protocol scheme.
1717
18- ToolHive supports three ways to run an MCP server:
18+ ToolHive supports four ways to run an MCP server:
1919
20201 . From the registry:
2121 $ thv run server-name [ -- args...]
@@ -36,6 +36,10 @@ ToolHive supports three ways to run an MCP server:
3636 or go (Golang). For Go, you can also specify local paths starting
3737 with './' or '../' to build and run local Go projects.
3838
39+ 4 . From an exported configuration:
40+ $ thv run --from-config <path >
41+ Runs an MCP server using a previously exported configuration file.
42+
3943The container will be started with the specified transport mode and
4044permission profile. Additional configuration can be provided via flags.
4145
@@ -52,8 +56,10 @@ thv run [flags] SERVER_OR_IMAGE_OR_PROTOCOL [-- ARGS...]
5256 --enable-audit Enable audit logging with default configuration
5357 -e, --env stringArray Environment variables to pass to the MCP server (format: KEY=VALUE)
5458 -f, --foreground Run in foreground mode (block until container exits)
59+ --from-config string Load configuration from exported file
5560 -h, --help help for run
5661 --host string Host for the HTTP proxy to listen on (IP or hostname) (default "127.0.0.1")
62+ --ignore-globally Load global ignore patterns from ~/.config/toolhive/thvignore (default true)
5763 --image-verification string Set image verification mode (warn, enabled, disabled) (default "warn")
5864 --isolate-network Isolate the container network from the host (default: false)
5965 --jwks-allow-private-ip Allow JWKS/OIDC endpoints on private IP addresses (use with caution)
@@ -73,12 +79,14 @@ thv run [flags] SERVER_OR_IMAGE_OR_PROTOCOL [-- ARGS...]
7379 --otel-sampling-rate float OpenTelemetry trace sampling rate (0.0-1.0) (default 0.1)
7480 --otel-service-name string OpenTelemetry service name (defaults to toolhive-mcp-proxy)
7581 --permission-profile string Permission profile to use (none, network, or path to JSON file)
82+ --print-resolved-overlays Debug: show resolved container paths for tmpfs overlays
7683 --proxy-mode string Proxy mode for stdio transport (sse or streamable-http) (default "sse")
7784 --proxy-port int Port for the HTTP proxy to listen on (host port)
7885 --secret stringArray Specify a secret to be fetched from the secrets manager and set as an environment variable (format: NAME,target=TARGET)
7986 --target-host string Host to forward traffic to (only applicable to SSE or Streamable HTTP transport) (default "127.0.0.1")
8087 --target-port int Port for the container to expose (only applicable to SSE or Streamable HTTP transport)
8188 --thv-ca-bundle string Path to CA certificate bundle for ToolHive HTTP operations (JWKS, OIDC discovery, etc.)
89+ --tools stringArray Filter MCP server tools (comma-separated list of tool names)
8290 --transport string Transport mode (sse, streamable-http or stdio)
8391 -v, --volume stringArray Mount a volume into the container (format: host-path:container-path[:ro])
8492```
0 commit comments