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
4 changes: 3 additions & 1 deletion docs/toolhive/reference/cli/thv_restart.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Restart a tooling server

### Synopsis

Restart a running tooling server managed by ToolHive. If the server is not running, it will be started.
Restart a running tooling server managed by ToolHive.
If the server is not running, it will be started.
Supports both container-based and remote MCP servers.

```
thv restart [workload-name] [flags]
Expand Down
25 changes: 25 additions & 0 deletions static/api-specs/toolhive-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ components:
Port is the port on which the workload is exposed.
This is embedded in the URL.
type: integer
remote:
description: Remote indicates whether this is a remote workload (true) or
a container workload (false).
type: boolean
status:
$ref: '#/components/schemas/runtime.WorkloadStatus'
status_context:
Expand Down Expand Up @@ -779,6 +783,18 @@ components:
description: ThvCABundle is the path to the CA certificate bundle for ToolHive
HTTP operations
type: string
tool_override:
additionalProperties:
$ref: '#/components/schemas/runner.ToolOverride'
description: |-
ToolOverride is the map of tool names to override. Tools to override are
specified as ToolOverride structs.
type: object
tool_override_file:
description: |-
ToolOverrideFile is the path to a file containing tool overrides.
The file is a JSON struct mapping actual names to ToolOverride structs.
type: string
tools_filter:
description: ToolsFilter is the list of tools to filter
items:
Expand All @@ -802,6 +818,15 @@ components:
type: array
uniqueItems: false
type: object
runner.ToolOverride:
properties:
description:
description: Description is the redefined description of the tool
type: string
name:
description: Name is the redefined name of the tool
type: string
type: object
runtime.WorkloadStatus:
description: Status is the current status of the workload.
type: string
Expand Down