Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/toolhive/reference/cli/thv.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ thv [flags]
* [thv secret](thv_secret.md) - Manage secrets
* [thv serve](thv_serve.md) - Start the ToolHive API server
* [thv start](thv_start.md) - Start (resume) a tooling server
* [thv status](thv_status.md) - Show detailed status of an MCP server
* [thv stop](thv_stop.md) - Stop one or more MCP servers
* [thv version](thv_version.md) - Show the version of ToolHive

6 changes: 3 additions & 3 deletions docs/toolhive/reference/cli/thv_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ thv build [flags] PROTOCOL [-- ARGS...]
### Options

```
--dry-run Generate Dockerfile without building (stdout output unless -o is set)
--dry-run Generate Dockerfile without building (stdout output unless -o is set) (default false)
-h, --help help for build
-o, --output string Write the Dockerfile to the specified file instead of building
-t, --tag string Name and optionally a tag in the 'name:tag' format for the built image
-o, --output string Write the Dockerfile to the specified file instead of building (default builds an image instead of generating a Dockerfile)
-t, --tag string Name and optionally a tag in the 'name:tag' format for the built image (default generates a unique image name based on the package and transport type)
```

### Options inherited from parent commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ thv config get-build-auth-file [name] [flags]

```
-h, --help help for get-build-auth-file
--show-content Show the actual file content (contains credentials)
--show-content Show the actual file content (contains credentials) (default false)
```

### Options inherited from parent commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ thv config set-build-auth-file <name> [content] [flags]

```
-h, --help help for set-build-auth-file
--stdin Read file content from stdin instead of command line argument
--stdin Read file content from stdin instead of command line argument (default false)
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/toolhive/reference/cli/thv_config_set-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ thv config set-registry <url-or-path> [flags]
### Options

```
-p, --allow-private-ip Allow setting the registry URL or API endpoint, even if it references a private IP address
-p, --allow-private-ip Allow setting the registry URL or API endpoint, even if it references a private IP address (default false)
-h, --help help for set-registry
```

Expand Down
2 changes: 1 addition & 1 deletion docs/toolhive/reference/cli/thv_group_rm.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ thv group rm [group-name] [flags]

```
-h, --help help for rm
--with-workloads Delete all workloads in the group along with the group
--with-workloads Delete all workloads in the group along with the group (default false)
```

### Options inherited from parent commands
Expand Down
4 changes: 2 additions & 2 deletions docs/toolhive/reference/cli/thv_logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ thv logs [workload-name|prune] [flags]
### Options

```
-f, --follow Follow log output (only for workload logs)
-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
-p, --proxy Show proxy logs instead of container logs (default false)
```

### Options inherited from parent commands
Expand Down
10 changes: 5 additions & 5 deletions docs/toolhive/reference/cli/thv_proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,18 @@ thv proxy [flags] SERVER_NAME
--oidc-jwks-url string URL to fetch the JWKS from
--oidc-scopes strings OAuth scopes to advertise in the well-known endpoint (RFC 9728, defaults to 'openid' if not specified)
--port int Port for the HTTP proxy to listen on (host port)
--remote-auth Enable OAuth/OIDC authentication to remote MCP server
--remote-auth Enable OAuth/OIDC authentication to remote MCP server (default false)
--remote-auth-authorize-url string OAuth authorization endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth)
--remote-auth-bearer-token string Bearer token for remote server authentication (alternative to OAuth)
--remote-auth-bearer-token-file string Path to file containing bearer token (alternative to --remote-auth-bearer-token)
--remote-auth-callback-port int Port for OAuth callback server during remote authentication (default 8666)
--remote-auth-client-id string OAuth client ID for remote server authentication
--remote-auth-client-secret string OAuth client secret for remote server authentication (optional for PKCE)
--remote-auth-client-secret-file string Path to file containing OAuth client secret (alternative to --remote-auth-client-secret)
--remote-auth-client-id string OAuth client ID for remote server authentication (optional if the authorization server supports dynamic client registration (RFC 7591))
--remote-auth-client-secret string OAuth client secret for remote server authentication (optional if the authorization server supports dynamic client registration (RFC 7591) or if using PKCE)
--remote-auth-client-secret-file string Path to file containing OAuth client secret (alternative to --remote-auth-client-secret) (optional if the authorization server supports dynamic client registration (RFC 7591) or if using PKCE)
--remote-auth-issuer string OAuth/OIDC issuer URL for remote server authentication (e.g., https://accounts.google.com)
--remote-auth-resource string OAuth 2.0 resource indicator (RFC 8707)
--remote-auth-scopes strings OAuth scopes to request for remote server authentication (defaults: OIDC uses 'openid,profile,email')
--remote-auth-skip-browser Skip opening browser for remote server OAuth flow
--remote-auth-skip-browser Skip opening browser for remote server OAuth flow (default false)
--remote-auth-timeout duration Timeout for OAuth authentication flow (e.g., 30s, 1m, 2m30s) (default 30s)
--remote-auth-token-url string OAuth token endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth)
--resource-url string Explicit resource URL for OAuth discovery endpoint (RFC 9728)
Expand Down
34 changes: 17 additions & 17 deletions docs/toolhive/reference/cli/thv_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,58 +114,58 @@ thv run [flags] SERVER_OR_IMAGE_OR_PROTOCOL [-- ARGS...]
--audit-config string Path to the audit configuration file
--authz-config string Path to the authorization configuration file
--ca-cert string Path to a custom CA certificate file to use for container builds
--enable-audit Enable audit logging with default configuration
--enable-audit Enable audit logging with default configuration (default false)
--endpoint-prefix string Path prefix to prepend to SSE endpoint URLs (e.g., /playwright)
-e, --env stringArray Environment variables to pass to the MCP server (format: KEY=VALUE)
--env-file string Load environment variables from a single file
--env-file-dir string Load environment variables from all files in a directory
-f, --foreground Run in foreground mode (block until container exits)
-f, --foreground Run in foreground mode (block until container exits) (default false)
--from-config string Load configuration from exported file
--group string Name of the group this workload belongs to (defaults to 'default' if not specified) (default "default")
--group string Name of the group this workload should belong to (default "default")
-h, --help help for run
--host string Host for the HTTP proxy to listen on (IP or hostname) (default "127.0.0.1")
--ignore-globally Load global ignore patterns from ~/.config/toolhive/thvignore (default true)
--image-verification string Set image verification mode (warn, enabled, disabled) (default "warn")
--isolate-network Isolate the container network from the host (default: false)
--jwks-allow-private-ip Allow JWKS/OIDC endpoints on private IP addresses (use with caution)
--isolate-network Isolate the container network from the host (default false)
--jwks-allow-private-ip Allow JWKS/OIDC endpoints on private IP addresses (use with caution) (default false)
--jwks-auth-token-file string Path to file containing bearer token for authenticating JWKS/OIDC requests
-l, --label stringArray Set labels on the container (format: key=value)
--name string Name of the MCP server (auto-generated from image if not provided)
--name string Name of the MCP server (default to auto-generated from image)
--network string Connect the container to a network (e.g., 'host' for host networking)
--oidc-audience string Expected audience for the token
--oidc-client-id string OIDC client ID
--oidc-client-secret string OIDC client secret (optional, for introspection)
--oidc-insecure-allow-http Allow HTTP (non-HTTPS) OIDC issuers for local development/testing (WARNING: Insecure!)
--oidc-insecure-allow-http Allow HTTP (non-HTTPS) OIDC issuers for local development/testing (WARNING: Insecure!) (default false)
--oidc-introspection-url string URL for token introspection endpoint
--oidc-issuer string OIDC issuer URL (e.g., https://accounts.google.com)
--oidc-jwks-url string URL to fetch the JWKS from
--oidc-scopes strings OAuth scopes to advertise in the well-known endpoint (RFC 9728, defaults to 'openid' if not specified)
--otel-custom-attributes string Custom resource attributes for OpenTelemetry in key=value format (e.g., server_type=prod,region=us-east-1,team=platform)
--otel-enable-prometheus-metrics-path Enable Prometheus-style /metrics endpoint on the main transport port
--otel-enable-prometheus-metrics-path Enable Prometheus-style /metrics endpoint on the main transport port (default false)
--otel-endpoint string OpenTelemetry OTLP endpoint URL (e.g., https://api.honeycomb.io)
--otel-env-vars stringArray Environment variable names to include in OpenTelemetry spans (comma-separated: ENV1,ENV2)
--otel-headers stringArray OpenTelemetry OTLP headers in key=value format (e.g., x-honeycomb-team=your-api-key)
--otel-insecure Connect to the OpenTelemetry endpoint using HTTP instead of HTTPS
--otel-insecure Connect to the OpenTelemetry endpoint using HTTP instead of HTTPS (default false)
--otel-metrics-enabled Enable OTLP metrics export (when OTLP endpoint is configured) (default true)
--otel-sampling-rate float OpenTelemetry trace sampling rate (0.0-1.0) (default 0.1)
--otel-service-name string OpenTelemetry service name (defaults to toolhive-mcp-proxy)
--otel-tracing-enabled Enable distributed tracing (when OTLP endpoint is configured) (default true)
--permission-profile string Permission profile to use (none, network, or path to JSON file)
--print-resolved-overlays Debug: show resolved container paths for tmpfs overlays
--permission-profile string Permission profile to use (none, network, or path to JSON file) (default is to use the permission profile from the registry or "network" if not part of the registry)
--print-resolved-overlays Debug: show resolved container paths for tmpfs overlays (default false)
--proxy-mode string Proxy mode for stdio (streamable-http or sse (deprecated, will be removed)) (default "streamable-http")
--proxy-port int Port for the HTTP proxy to listen on (host port)
--remote-auth Enable OAuth/OIDC authentication to remote MCP server
--remote-auth Enable OAuth/OIDC authentication to remote MCP server (default false)
--remote-auth-authorize-url string OAuth authorization endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth)
--remote-auth-bearer-token string Bearer token for remote server authentication (alternative to OAuth)
--remote-auth-bearer-token-file string Path to file containing bearer token (alternative to --remote-auth-bearer-token)
--remote-auth-callback-port int Port for OAuth callback server during remote authentication (default 8666)
--remote-auth-client-id string OAuth client ID for remote server authentication
--remote-auth-client-secret string OAuth client secret for remote server authentication (optional for PKCE)
--remote-auth-client-secret-file string Path to file containing OAuth client secret (alternative to --remote-auth-client-secret)
--remote-auth-client-id string OAuth client ID for remote server authentication (optional if the authorization server supports dynamic client registration (RFC 7591))
--remote-auth-client-secret string OAuth client secret for remote server authentication (optional if the authorization server supports dynamic client registration (RFC 7591) or if using PKCE)
--remote-auth-client-secret-file string Path to file containing OAuth client secret (alternative to --remote-auth-client-secret) (optional if the authorization server supports dynamic client registration (RFC 7591) or if using PKCE)
--remote-auth-issuer string OAuth/OIDC issuer URL for remote server authentication (e.g., https://accounts.google.com)
--remote-auth-resource string OAuth 2.0 resource indicator (RFC 8707)
--remote-auth-scopes strings OAuth scopes to request for remote server authentication (defaults: OIDC uses 'openid,profile,email')
--remote-auth-skip-browser Skip opening browser for remote server OAuth flow
--remote-auth-skip-browser Skip opening browser for remote server OAuth flow (default false)
--remote-auth-timeout duration Timeout for OAuth authentication flow (e.g., 30s, 1m, 2m30s) (default 30s)
--remote-auth-token-url string OAuth token endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth)
--resource-url string Explicit resource URL for OAuth discovery endpoint (RFC 9728)
Expand All @@ -184,7 +184,7 @@ thv run [flags] SERVER_OR_IMAGE_OR_PROTOCOL [-- ARGS...]
--tools stringArray Filter MCP server tools (comma-separated list of tool names)
--tools-override string Path to a JSON file containing overrides for MCP server tools names and descriptions
--transport string Transport mode (sse, streamable-http or stdio)
--trust-proxy-headers Trust X-Forwarded-* headers from reverse proxies (X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Prefix)
--trust-proxy-headers Trust X-Forwarded-* headers from reverse proxies (X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Prefix) (default false)
-v, --volume stringArray Mount a volume into the container (format: host-path:container-path[:ro])
```

Expand Down
8 changes: 4 additions & 4 deletions docs/toolhive/reference/cli/thv_secret_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Note: The "thv secret setup" command is recommended for interactive configuratio
Use this command to set the secrets provider directly without interactive prompts,
making it suitable for scripted deployments and automation.

Valid secrets providers:
- encrypted: Full read-write secrets provider using AES-256-GCM encryption
- 1password: Read-only secrets provider (requires OP_SERVICE_ACCOUNT_TOKEN)
- none: Disables secrets functionality
Valid secrets providers:
- encrypted: Full read-write secrets provider using AES-256-GCM encryption
- 1password: Read-only secrets provider (requires OP_SERVICE_ACCOUNT_TOKEN)
- environment: Read-only secrets provider from TOOLHIVE_SECRET_* env vars

```
thv secret provider <name> [flags]
Expand Down
8 changes: 4 additions & 4 deletions docs/toolhive/reference/cli/thv_secret_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ This command guides you through selecting and configuring a secrets provider
for storing and retrieving secrets. The setup process validates your
configuration and ensures the selected provider initializes properly.

Available providers:
- encrypted: Stores secrets in an encrypted file using AES-256-GCM using the OS keyring
- 1password: Read-only access to 1Password secrets (requires OP_SERVICE_ACCOUNT_TOKEN environment variable)
- none: Disables secrets functionality
Available providers:
- encrypted: Stores secrets in an encrypted file using AES-256-GCM using the OS keyring
- 1password: Read-only access to 1Password secrets (requires OP_SERVICE_ACCOUNT_TOKEN environment variable)
- environment: Read-only access to secrets from TOOLHIVE_SECRET_* env vars

Run this command before using any other secrets functionality.

Expand Down
2 changes: 1 addition & 1 deletion docs/toolhive/reference/cli/thv_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ thv start [workload-name] [flags]

```
-a, --all Restart all MCP servers
-f, --foreground Run the restarted workload in foreground mode
-f, --foreground Run the restarted workload in foreground mode (default false)
-g, --group string Filter by group
-h, --help help for start
```
Expand Down
40 changes: 40 additions & 0 deletions docs/toolhive/reference/cli/thv_status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: thv status
hide_title: true
description: Reference for ToolHive CLI command `thv status`
last_update:
author: autogenerated
slug: thv_status
mdx:
format: md
---

## thv status

Show detailed status of an MCP server

### Synopsis

Display detailed status information for a specific MCP server managed by ToolHive.

```
thv status [workload-name] [flags]
```

### Options

```
--format string Output format (json or text) (default "text")
-h, --help help for status
```

### Options inherited from parent commands

```
--debug Enable debug mode
```

### SEE ALSO

* [thv](thv.md) - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers

Loading