Skip to content

Commit c8fc049

Browse files
committed
Document local registry
1 parent b465acd commit c8fc049

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

docs/toolhive/guides-cli/registry.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,29 +137,37 @@ organizations that want to maintain their own private registry of MCP servers.
137137
To configure ToolHive to use a remote registry, set the registry URL:
138138

139139
```bash
140-
thv config set-registry-url <URL>
140+
thv config set-registry <URL>
141141
```
142142

143143
For example:
144144

145145
```bash
146-
thv config set-registry-url https://example.com/registry.json
146+
thv config set-registry https://example.com/registry.json
147147
```
148148

149-
The remote registry must be a JSON file that follows the same format as the
149+
### Set a local registry file
150+
151+
To configure ToolHive to use a local registry, set the registry file:
152+
153+
```bash
154+
thv config set-registry <PATH>
155+
```
156+
157+
The registry must be a JSON file that follows the same format as the
150158
[built-in registry](https://github.com/stacklok/toolhive/blob/main/pkg/registry/data/registry.json).
151159
Once you configure a remote registry, all registry commands
152160
([`thv registry list`](../reference/cli/thv_registry_list.md),
153161
[`thv registry info`](../reference/cli/thv_registry_info.md),
154162
[`thv search`](../reference/cli/thv_search.md)) will use the remote registry
155163
instead of the built-in one.
156164

157-
### Check the current registry URL
165+
### Check the current registry location
158166

159-
To see which registry URL is currently configured:
167+
To see which registry (URL or path) is currently configured:
160168

161169
```bash
162-
thv config get-registry-url
170+
thv config get-registry
163171
```
164172

165173
If no custom registry is configured, this command indicates that the built-in
@@ -171,7 +179,7 @@ To remove the custom registry configuration and revert to using the built-in
171179
registry:
172180

173181
```bash
174-
thv config unset-registry-url
182+
thv config unset-registry
175183
```
176184

177185
This restores the default behavior of using ToolHive's built-in registry.

0 commit comments

Comments
 (0)