From 52c4b19c43c1b2f1fa89e69cf3e01ece2440ad1a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 10:17:42 +0000 Subject: [PATCH] Update ToolHive reference docs for v0.2.12 --- docs/toolhive/reference/cli/thv_restart.md | 4 +++- static/api-specs/toolhive-api.yaml | 25 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/docs/toolhive/reference/cli/thv_restart.md b/docs/toolhive/reference/cli/thv_restart.md index d1c06d1c..2a9bfb5c 100644 --- a/docs/toolhive/reference/cli/thv_restart.md +++ b/docs/toolhive/reference/cli/thv_restart.md @@ -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] diff --git a/static/api-specs/toolhive-api.yaml b/static/api-specs/toolhive-api.yaml index e637ea8d..85287932 100644 --- a/static/api-specs/toolhive-api.yaml +++ b/static/api-specs/toolhive-api.yaml @@ -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: @@ -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: @@ -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