You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/toolhive/guides-cli/manage-mcp-servers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ thv list
18
18
```
19
19
20
20
This shows the server name, package, status, url, port, tool type, group, and created at. Remote
21
-
servers will show their target URL in url, and remotein package and tool type columns making it easy to identify them.
21
+
servers display their target URL in the URL column. The word 'remote' is indicated in both the package and tool type columns, making it easy to identify remote servers.
Copy file name to clipboardExpand all lines: docs/toolhive/guides-cli/run-mcp-servers.mdx
+22-30Lines changed: 22 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,7 @@ thv run neon
39
39
thv run stripe
40
40
```
41
41
42
-
When you run a remote server from the registry, ToolHive uses the pre-configured remote URL and authentication settings. By default, remote servers use the `streamable-http` transport. If the server uses Server-Sent Events (SSE), specify the transport flag:
43
-
44
-
```bash
45
-
thv run <SERVER_NAME> --transport sse
46
-
```
42
+
When you run a remote server from the registry, ToolHive uses the pre-configured remote URL and authentication settings.
47
43
48
44
:::note[Naming convention]
49
45
@@ -601,7 +597,15 @@ thv run <URL> [--name <SERVER_NAME>]
601
597
For example:
602
598
603
599
```bash
604
-
thv run https://api.example.com/mcp --name my-remote-server
600
+
thv run https://api.example.com/mcp
601
+
```
602
+
603
+
If you don't specify a name with `--name`, ToolHive will automatically derive a name from the URL by extracting the main domain name (e.g., `notion` from `https://api.notion.com/mcp`).
604
+
605
+
By default, remote servers use the `streamable-http` transport. If the server uses Server-Sent Events (SSE), specify the transport flag:
606
+
607
+
```bash
608
+
thv run https://api.example.com/sse --transport sse
605
609
```
606
610
607
611
:::info[What's happening?]
@@ -612,7 +616,7 @@ When you run a remote MCP server, ToolHive:
612
616
2. Handles OAuth/OIDC authentication flows if needed.
613
617
3. Starts an HTTP proxy process on a random port to forward client requests to
614
618
the remote server.
615
-
4. Manages the server like any other ToolHive workload. No conatainer is created for remote MCP servers.
619
+
4. Manages the server like any other ToolHive workload. No container is created for remote MCP servers.
616
620
617
621
:::
618
622
@@ -630,11 +634,11 @@ examining the server's response headers and status codes:
630
634
thv run https://protected-api.com/mcp --name my-server
631
635
```
632
636
633
-
If authentication is required, ToolHive will prompt you to complete the OAuth flow.
637
+
If authentication is required, ToolHive will prompt you to complete the OAuth flow. When no client credentials are provided, ToolHive automatically registers an OAuth client with the authorization server using RFC 7591 dynamic client registration, eliminating the need to pre-configure client ID and secret.
634
638
635
-
#### OAuth/OIDC authentication
639
+
#### OIDC authentication
636
640
637
-
For servers requiring OAuth or OIDC authentication, you can provide the issuer URL:
641
+
For servers using OpenID Connect (OIDC), you can provide the issuer URL:
638
642
639
643
```bash
640
644
thv run https://api.example.com/mcp \
@@ -643,38 +647,26 @@ thv run https://api.example.com/mcp \
643
647
--remote-auth-client-id my-client-id
644
648
```
645
649
646
-
#### Dynamic client registration
650
+
#### OAuth2 authentication
647
651
648
-
When no client credentials are provided, ToolHive automatically registers an OAuth client
649
-
with the authorization server using RFC 7591 dynamic client registration:
652
+
For servers using OAuth2, you can specify the authorization and token URLs manually:
650
653
651
654
```bash
652
-
thv run https://api.example.com/mcp --name my-server
0 commit comments