Skip to content

Commit dac9c4b

Browse files
Update ToolHive reference docs for v0.2.3 (#89)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 95ff0ee commit dac9c4b

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

docs/toolhive/reference/cli/thv.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ thv [flags]
3535

3636
### SEE ALSO
3737

38+
* [thv build](thv_build.md) - Build a container for an MCP server without running it
3839
* [thv client](thv_client.md) - Manage MCP clients
3940
* [thv config](thv_config.md) - Manage application configuration
4041
* [thv export](thv_export.md) - Export a workload's run configuration to a file
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
title: thv build
3+
hide_title: true
4+
description: Reference for ToolHive CLI command `thv build`
5+
last_update:
6+
author: autogenerated
7+
slug: thv_build
8+
mdx:
9+
format: md
10+
---
11+
12+
## thv build
13+
14+
Build a container for an MCP server without running it
15+
16+
### Synopsis
17+
18+
Build a container for an MCP server using a protocol scheme without running it.
19+
20+
ToolHive supports building containers from protocol schemes:
21+
22+
$ thv build uvx://package-name
23+
$ thv build npx://package-name
24+
$ thv build go://package-name
25+
$ thv build go://./local-path
26+
27+
Automatically generates a container that can run the specified package
28+
using either uvx (Python with uv package manager), npx (Node.js),
29+
or go (Golang). For Go, you can also specify local paths starting
30+
with './' or '../' to build local Go projects.
31+
32+
The container will be built and tagged locally, ready to be used with 'thv run'
33+
or other container tools. The built image name will be displayed upon successful completion.
34+
35+
Examples:
36+
$ thv build uvx://mcp-server-git
37+
$ thv build --tag my-custom-name:latest npx://@modelcontextprotocol/server-filesystem
38+
$ thv build go://./my-local-server
39+
40+
```
41+
thv build [flags] PROTOCOL
42+
```
43+
44+
### Options
45+
46+
```
47+
-h, --help help for build
48+
-t, --tag string Name and optionally a tag in the 'name:tag' format for the built image
49+
```
50+
51+
### Options inherited from parent commands
52+
53+
```
54+
--debug Enable debug mode
55+
```
56+
57+
### SEE ALSO
58+
59+
* [thv](thv.md) - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers
60+

static/api-specs/toolhive-api.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ components:
153153
properties:
154154
name:
155155
type: string
156+
registered_clients:
157+
items:
158+
type: string
159+
type: array
160+
uniqueItems: false
156161
type: object
157162
ignore.Config:
158163
description: IgnoreConfig contains configuration for ignore processing

0 commit comments

Comments
 (0)