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
2 changes: 2 additions & 0 deletions docs/toolhive/reference/cli/thv_client_register.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ Valid clients:
- amp-windsurf: Sourcegraph Amp extension for Windsurf
- claude-code: Claude Code CLI
- cline: Cline extension for VS Code
- continue: Continue.dev extensions for VS Code and JetBrains
- cursor: Cursor editor
- goose: Goose AI agent
- lm-studio: LM Studio application
- roo-code: Roo Code extension for VS Code
- trae: Trae IDE
- vscode: Visual Studio Code
- vscode-insider: Visual Studio Code Insiders edition
- windsurf: Windsurf IDE
Expand Down
2 changes: 2 additions & 0 deletions docs/toolhive/reference/cli/thv_client_remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ Valid clients:
- amp-windsurf: Sourcegraph Amp extension for Windsurf
- claude-code: Claude Code CLI
- cline: Cline extension for VS Code
- continue: Continue.dev extensions for VS Code and JetBrains
- cursor: Cursor editor
- goose: Goose AI agent
- lm-studio: LM Studio application
- roo-code: Roo Code extension for VS Code
- trae: Trae IDE
- vscode: Visual Studio Code
- vscode-insider: Visual Studio Code Insiders edition
- windsurf: Windsurf IDE
Expand Down
12 changes: 10 additions & 2 deletions docs/toolhive/reference/cli/thv_export.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ Export a workload's run configuration to a file for sharing or backup.
The exported configuration can be used with 'thv run --from-config <path>' to recreate
the same workload with identical settings.

You can export in different formats:
- json: Export as RunConfig JSON (default, can be used with 'thv run --from-config')
- k8s: Export as Kubernetes MCPServer resource YAML

Examples:

# Export a workload configuration to a file
# Export a workload configuration to a JSON file
thv export my-server ./my-server-config.json

# Export as Kubernetes MCPServer resource
thv export my-server ./my-server.yaml --format k8s

# Export to a specific directory
thv export github-mcp /tmp/configs/github-config.json

Expand All @@ -35,7 +42,8 @@ thv export <workload name> <path> [flags]
### Options

```
-h, --help help for export
--format string Export format: json or k8s (default "json")
-h, --help help for export
```

### Options inherited from parent commands
Expand Down
52 changes: 52 additions & 0 deletions static/api-specs/toolhive-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ components:
- AmpWindsurf
- LMStudio
- Goose
- Trae
- Continue
client.MCPClientStatus:
properties:
client_type:
Expand All @@ -146,6 +148,8 @@ components:
- AmpWindsurf
- LMStudio
- Goose
- Trae
- Continue
installed:
description: Installed indicates whether the client is installed on the
system
Expand Down Expand Up @@ -1040,6 +1044,8 @@ components:
- AmpWindsurf
- LMStudio
- Goose
- Trae
- Continue
type: array
uniqueItems: false
type: object
Expand Down Expand Up @@ -1090,6 +1096,8 @@ components:
- AmpWindsurf
- LMStudio
- Goose
- Trae
- Continue
type: object
v1.createClientResponse:
properties:
Expand Down Expand Up @@ -1118,6 +1126,8 @@ components:
- AmpWindsurf
- LMStudio
- Goose
- Trae
- Continue
type: object
v1.createGroupRequest:
properties:
Expand Down Expand Up @@ -2547,6 +2557,12 @@ paths:
schema:
type: string
description: Logs for the specified workload
"400":
content:
application/json:
schema:
type: string
description: Invalid workload name
"404":
content:
application/json:
Expand All @@ -2556,6 +2572,42 @@ paths:
summary: Get logs for a specific workload
tags:
- logs
/api/v1beta/workloads/{name}/proxy-logs:
get:
description: Retrieve proxy logs for a specific workload by name from the file
system.
parameters:
- description: Workload name
in: path
name: name
required: true
schema:
type: string
responses:
"200":
content:
application/json:
schema:
type: string
text/plain:
schema:
type: string
description: Proxy logs for the specified workload
"400":
content:
application/json:
schema:
type: string
description: Invalid workload name
"404":
content:
application/json:
schema:
type: string
description: Proxy logs not found for workload
summary: Get proxy logs for a specific workload
tags:
- logs
/api/v1beta/workloads/{name}/restart:
post:
description: Restart a running workload
Expand Down