Skip to content

Commit 9fd3b99

Browse files
committed
Add note about secrets references, fix formatting
Signed-off-by: Dan Barr <[email protected]>
1 parent 83e20b9 commit 9fd3b99

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

docs/toolhive/guides-cli/run-mcp-servers.mdx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ previously exported configurations. This is useful for:
458458

459459
### Export a server configuration
460460

461-
To export a running server's configuration to a file, use the
461+
To export a running server's configuration to a file, use the
462462
[`thv export`](../reference/cli/thv_export.md) command:
463463

464464
```bash
@@ -472,8 +472,9 @@ thv export fetch ./fetch-config.json
472472
```
473473

474474
This creates a JSON file containing all the server's configuration, including:
475+
475476
- Container image and version
476-
- Environment variables and secrets
477+
- Environment variables and secrets references
477478
- Volume mounts and permissions
478479
- Network settings
479480
- Transport configuration
@@ -493,18 +494,22 @@ For example, to run a server using the exported configuration:
493494
thv run --from-config ./fetch-config.json
494495
```
495496

496-
This creates a new server instance with identical settings to the original.
497+
This creates a new server instance with identical settings to the original. If
498+
the original server used secrets, you must have the same secrets available in
499+
your ToolHive secrets store.
497500

498501
:::info
499-
When running from a configuration file, you can still override specific
500-
settings using command-line flags. For example:
502+
503+
When running from a configuration file, you can still override specific settings
504+
using command-line flags. For example:
501505

502506
```bash
503507
thv run --from-config ./fetch-config.json --name custom-fetch --proxy-port 8080
504508
```
505509

506510
This runs the server with the exported configuration but uses a custom name and
507511
port.
512+
508513
:::
509514

510515
## Next steps

docs/toolhive/tutorials/quickstart-cli.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ server. Here are some next steps to explore:
293293
servers that require authentication
294294
- Explore [custom permissions](../guides-cli/custom-permissions.mdx) for MCP
295295
servers
296-
- Learn how to [share and reuse server configurations](../guides-cli/run-mcp-servers.mdx#share-and-reuse-server-configurations)
296+
- Learn how to
297+
[share and reuse server configurations](../guides-cli/run-mcp-servers.mdx#share-and-reuse-server-configurations)
297298
using the export and import functionality
298299
- Set up [shell completion](../guides-cli/install.mdx#enable-shell-completion)
299300
to make ToolHive commands easier to use

0 commit comments

Comments
 (0)