| title | thv config set-registry | ||
|---|---|---|---|
| hide_title | true | ||
| description | Reference for ToolHive CLI command `thv config set-registry` | ||
| last_update |
|
||
| slug | thv_config_set-registry | ||
| mdx |
|
Set the MCP server registry
Set the MCP server registry to a remote URL, local file path, or API endpoint. The command automatically detects the registry type:
- URLs ending with .json are treated as static registry files
- Other URLs are treated as MCP Registry API endpoints (v0.1 spec)
- Local paths are treated as local registry files
Examples: thv config set-registry https://example.com/registry.json # Static remote file thv config set-registry https://registry.example.com # API endpoint thv config set-registry /path/to/local-registry.json # Local file path thv config set-registry file:///path/to/local-registry.json # Explicit file URL
thv config set-registry <url-or-path> [flags]
-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
--debug Enable debug mode
- thv config - Manage application configuration