From afe58e38360328fcd025b2fe2957df8cb210ee39 Mon Sep 17 00:00:00 2001 From: amirejaz Date: Mon, 14 Jul 2025 11:34:10 +0100 Subject: [PATCH 1/4] moved client register/remove commands under client --- docs/toolhive/guides-cli/client-configuration.md | 13 +++++++------ docs/toolhive/reference/cli/thv_client.md | 2 ++ ..._register-client.md => thv_client_register.md} | 15 +++++++-------- ...nfig_remove-client.md => thv_client_remove.md} | 15 +++++++-------- docs/toolhive/reference/cli/thv_config.md | 2 -- 5 files changed, 23 insertions(+), 24 deletions(-) rename docs/toolhive/reference/cli/{thv_config_register-client.md => thv_client_register.md} (63%) rename docs/toolhive/reference/cli/{thv_config_remove-client.md => thv_client_remove.md} (63%) diff --git a/docs/toolhive/guides-cli/client-configuration.md b/docs/toolhive/guides-cli/client-configuration.md index 203dc6e3..3a4800c6 100644 --- a/docs/toolhive/guides-cli/client-configuration.md +++ b/docs/toolhive/guides-cli/client-configuration.md @@ -60,10 +60,10 @@ configurations. ## Alternative client registration If you prefer to register clients manually or in an automated script, use the -`thv config register-client` command: +`thv client register` command: ```bash -thv config register-client +thv client register ``` Replace `` with the name of your client. Common client names @@ -72,17 +72,18 @@ include: - `claude-code` - Claude Code CLI - `cursor` - Cursor IDE - `roo-code` - Roo Code extension for Visual Studio Code +- `cline` - Cline extension for Visual Studio Code - `vscode` - Visual Studio Code (GitHub Copilot) - `vscode-insider` - VS Code Insiders edition Example: ```bash -thv config register-client vscode +thv client register vscode ``` Run -[`thv config register-client --help`](../reference/cli/thv_config_register-client.md) +[`thv client register --help`](../reference/cli/thv_client_register.md) for the latest list of supported clients. To list currently registered clients: @@ -99,7 +100,7 @@ effect. To remove a client configuration: ```bash -thv config remove-client +thv client remove ``` ## Other clients or tools @@ -175,7 +176,7 @@ If ToolHive doesn't detect your client: 3. Try manually registering the client: ```bash - thv config register-client + thv client register ``` diff --git a/docs/toolhive/reference/cli/thv_client.md b/docs/toolhive/reference/cli/thv_client.md index 757d535f..012b2625 100644 --- a/docs/toolhive/reference/cli/thv_client.md +++ b/docs/toolhive/reference/cli/thv_client.md @@ -30,6 +30,8 @@ The client command provides subcommands to manage MCP client integrations. ### SEE ALSO * [thv](thv.md) - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers +* [thv client register](thv_client_register.md) - Register a client for MCP server configuration +* [thv client remove](thv_client_remove.md) - Remove a client from MCP server configuration * [thv client setup](thv_client_setup.md) - Interactively setup and register installed clients * [thv client status](thv_client_status.md) - Show status of all supported MCP clients diff --git a/docs/toolhive/reference/cli/thv_config_register-client.md b/docs/toolhive/reference/cli/thv_client_register.md similarity index 63% rename from docs/toolhive/reference/cli/thv_config_register-client.md rename to docs/toolhive/reference/cli/thv_client_register.md index 386423e8..8d552fa8 100644 --- a/docs/toolhive/reference/cli/thv_config_register-client.md +++ b/docs/toolhive/reference/cli/thv_client_register.md @@ -1,13 +1,13 @@ --- -title: thv config register-client +title: thv client register hide_title: true -description: Reference for ToolHive CLI command `thv config register-client` +description: Reference for ToolHive CLI command `thv client register` last_update: author: autogenerated -slug: thv_config_register-client +slug: thv_client_register --- -## thv config register-client +## thv client register Register a client for MCP server configuration @@ -23,13 +23,13 @@ Valid clients are: - vscode-insider: Visual Studio Code Insiders edition ``` -thv config register-client [client] [flags] +thv client register [client] [flags] ``` ### Options ``` - -h, --help help for register-client + -h, --help help for register ``` ### Options inherited from parent commands @@ -40,5 +40,4 @@ thv config register-client [client] [flags] ### SEE ALSO -* [thv config](thv_config.md) - Manage application configuration - +* [thv client](thv_client.md) - Manage MCP clients \ No newline at end of file diff --git a/docs/toolhive/reference/cli/thv_config_remove-client.md b/docs/toolhive/reference/cli/thv_client_remove.md similarity index 63% rename from docs/toolhive/reference/cli/thv_config_remove-client.md rename to docs/toolhive/reference/cli/thv_client_remove.md index 93d88faa..de278bc3 100644 --- a/docs/toolhive/reference/cli/thv_config_remove-client.md +++ b/docs/toolhive/reference/cli/thv_client_remove.md @@ -1,13 +1,13 @@ --- -title: thv config remove-client +title: thv client remove hide_title: true -description: Reference for ToolHive CLI command `thv config remove-client` +description: Reference for ToolHive CLI command `thv client remove` last_update: author: autogenerated -slug: thv_config_remove-client +slug: thv_client_remove --- -## thv config remove-client +## thv client remove Remove a client from MCP server configuration @@ -23,13 +23,13 @@ Valid clients are: - vscode-insider: Visual Studio Code Insiders edition ``` -thv config remove-client [client] [flags] +thv client remove [client] [flags] ``` ### Options ``` - -h, --help help for remove-client + -h, --help help for remove ``` ### Options inherited from parent commands @@ -40,5 +40,4 @@ thv config remove-client [client] [flags] ### SEE ALSO -* [thv config](thv_config.md) - Manage application configuration - +* [thv client](thv_client.md) - Manage MCP clients \ No newline at end of file diff --git a/docs/toolhive/reference/cli/thv_config.md b/docs/toolhive/reference/cli/thv_config.md index a03f3de3..a99deda1 100644 --- a/docs/toolhive/reference/cli/thv_config.md +++ b/docs/toolhive/reference/cli/thv_config.md @@ -34,8 +34,6 @@ The config command provides subcommands to manage application configuration sett * [thv config get-registry-url](thv_config_get-registry-url.md) - Get the currently configured registry URL * [thv config list-registered-clients](thv_config_list-registered-clients.md) - List all registered MCP clients * [thv config otel](thv_config_otel.md) - Manage OpenTelemetry configuration -* [thv config register-client](thv_config_register-client.md) - Register a client for MCP server configuration -* [thv config remove-client](thv_config_remove-client.md) - Remove a client from MCP server configuration * [thv config set-ca-cert](thv_config_set-ca-cert.md) - Set the default CA certificate for container builds * [thv config set-registry-url](thv_config_set-registry-url.md) - Set the MCP server registry URL * [thv config unset-ca-cert](thv_config_unset-ca-cert.md) - Remove the configured CA certificate From b187b40388e637ad4b8420239424c5e62e676696 Mon Sep 17 00:00:00 2001 From: amirejaz Date: Mon, 14 Jul 2025 11:44:09 +0100 Subject: [PATCH 2/4] format client-configuration.md with Prettier to resolve CI failure --- docs/toolhive/guides-cli/client-configuration.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/toolhive/guides-cli/client-configuration.md b/docs/toolhive/guides-cli/client-configuration.md index 3a4800c6..084c76b8 100644 --- a/docs/toolhive/guides-cli/client-configuration.md +++ b/docs/toolhive/guides-cli/client-configuration.md @@ -82,9 +82,8 @@ Example: thv client register vscode ``` -Run -[`thv client register --help`](../reference/cli/thv_client_register.md) -for the latest list of supported clients. +Run [`thv client register --help`](../reference/cli/thv_client_register.md) for +the latest list of supported clients. To list currently registered clients: From dae67d4231a16da26266a3849225faca7f005769 Mon Sep 17 00:00:00 2001 From: amirejaz Date: Mon, 14 Jul 2025 13:07:37 +0100 Subject: [PATCH 3/4] moved list-regiserted-clients under client --- .../guides-cli/client-configuration.md | 2 +- docs/toolhive/reference/cli/thv_client.md | 1 + .../cli/thv_client_list-registered.md | 36 ++++++++++++++++++ docs/toolhive/reference/cli/thv_config.md | 1 - .../cli/thv_config_list-registered-clients.md | 37 ------------------- 5 files changed, 38 insertions(+), 39 deletions(-) create mode 100644 docs/toolhive/reference/cli/thv_client_list-registered.md delete mode 100644 docs/toolhive/reference/cli/thv_config_list-registered-clients.md diff --git a/docs/toolhive/guides-cli/client-configuration.md b/docs/toolhive/guides-cli/client-configuration.md index 084c76b8..d3f10e41 100644 --- a/docs/toolhive/guides-cli/client-configuration.md +++ b/docs/toolhive/guides-cli/client-configuration.md @@ -88,7 +88,7 @@ the latest list of supported clients. To list currently registered clients: ```bash -thv config list-registered-clients +thv client list-registered ``` Repeat the registration step for any additional clients you want to configure. diff --git a/docs/toolhive/reference/cli/thv_client.md b/docs/toolhive/reference/cli/thv_client.md index 012b2625..f6985605 100644 --- a/docs/toolhive/reference/cli/thv_client.md +++ b/docs/toolhive/reference/cli/thv_client.md @@ -30,6 +30,7 @@ The client command provides subcommands to manage MCP client integrations. ### SEE ALSO * [thv](thv.md) - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers +* [thv client list-registered](thv_client_list-registered.md) - List all registered MCP clients * [thv client register](thv_client_register.md) - Register a client for MCP server configuration * [thv client remove](thv_client_remove.md) - Remove a client from MCP server configuration * [thv client setup](thv_client_setup.md) - Interactively setup and register installed clients diff --git a/docs/toolhive/reference/cli/thv_client_list-registered.md b/docs/toolhive/reference/cli/thv_client_list-registered.md new file mode 100644 index 00000000..b71e2beb --- /dev/null +++ b/docs/toolhive/reference/cli/thv_client_list-registered.md @@ -0,0 +1,36 @@ +--- +title: thv client list-registered +hide_title: true +description: Reference for ToolHive CLI command `thv client list-registered` +last_update: + author: autogenerated +slug: thv_client_list-registered +--- + +## thv client list-registered + +List all registered MCP clients + +### Synopsis + +List all clients that are registered for MCP server configuration. + +``` +thv client list-registered [flags] +``` + +### Options + +``` + -h, --help help for list-registered +``` + +### Options inherited from parent commands + +``` + --debug Enable debug mode +``` + +### SEE ALSO + +* [thv client](thv_client.md) - Manage MCP clients \ No newline at end of file diff --git a/docs/toolhive/reference/cli/thv_config.md b/docs/toolhive/reference/cli/thv_config.md index a99deda1..82eac9a1 100644 --- a/docs/toolhive/reference/cli/thv_config.md +++ b/docs/toolhive/reference/cli/thv_config.md @@ -32,7 +32,6 @@ The config command provides subcommands to manage application configuration sett * [thv](thv.md) - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers * [thv config get-ca-cert](thv_config_get-ca-cert.md) - Get the currently configured CA certificate path * [thv config get-registry-url](thv_config_get-registry-url.md) - Get the currently configured registry URL -* [thv config list-registered-clients](thv_config_list-registered-clients.md) - List all registered MCP clients * [thv config otel](thv_config_otel.md) - Manage OpenTelemetry configuration * [thv config set-ca-cert](thv_config_set-ca-cert.md) - Set the default CA certificate for container builds * [thv config set-registry-url](thv_config_set-registry-url.md) - Set the MCP server registry URL diff --git a/docs/toolhive/reference/cli/thv_config_list-registered-clients.md b/docs/toolhive/reference/cli/thv_config_list-registered-clients.md deleted file mode 100644 index 4030d17d..00000000 --- a/docs/toolhive/reference/cli/thv_config_list-registered-clients.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: thv config list-registered-clients -hide_title: true -description: Reference for ToolHive CLI command `thv config list-registered-clients` -last_update: - author: autogenerated -slug: thv_config_list-registered-clients ---- - -## thv config list-registered-clients - -List all registered MCP clients - -### Synopsis - -List all clients that are registered for MCP server configuration. - -``` -thv config list-registered-clients [flags] -``` - -### Options - -``` - -h, --help help for list-registered-clients -``` - -### Options inherited from parent commands - -``` - --debug Enable debug mode -``` - -### SEE ALSO - -* [thv config](thv_config.md) - Manage application configuration - From e15bae267e3d49a92b5757499149246de1db001d Mon Sep 17 00:00:00 2001 From: amirejaz Date: Mon, 14 Jul 2025 13:10:30 +0100 Subject: [PATCH 4/4] rearranged the commands --- docs/toolhive/reference/cli/thv_client.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/toolhive/reference/cli/thv_client.md b/docs/toolhive/reference/cli/thv_client.md index f6985605..ecd3772e 100644 --- a/docs/toolhive/reference/cli/thv_client.md +++ b/docs/toolhive/reference/cli/thv_client.md @@ -30,9 +30,8 @@ The client command provides subcommands to manage MCP client integrations. ### SEE ALSO * [thv](thv.md) - ToolHive (thv) is a lightweight, secure, and fast manager for MCP servers +* [thv client status](thv_client_status.md) - Show status of all supported MCP clients +* [thv client setup](thv_client_setup.md) - Interactively setup and register installed clients * [thv client list-registered](thv_client_list-registered.md) - List all registered MCP clients * [thv client register](thv_client_register.md) - Register a client for MCP server configuration * [thv client remove](thv_client_remove.md) - Remove a client from MCP server configuration -* [thv client setup](thv_client_setup.md) - Interactively setup and register installed clients -* [thv client status](thv_client_status.md) - Show status of all supported MCP clients -