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