Skip to content

Commit 7b90666

Browse files
committed
improve the language and logging guide
1 parent 7db5228 commit 7b90666

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

docs/toolhive/guides-cli/manage-mcp-servers.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ thv list --all
3030

3131
### View server logs
3232

33-
To view the logs of a running or stopped MCP server, use the
33+
#### Containerized servers
34+
35+
To view the logs of a running or stopped containerized MCP server, use the
3436
[`thv logs`](../reference/cli/thv_logs.md) command. You can optionally follow
3537
the logs with the `--follow` option, which shows the most recent log entries and
3638
updates in real time.
@@ -39,8 +41,11 @@ updates in real time.
3941
thv logs <SERVER_NAME> [--follow]
4042
```
4143

42-
Logs are stored in the ToolHive application directory. The path depends on your
43-
platform:
44+
#### Remote servers
45+
46+
The thv logs command only works with local containers. For remote MCP servers,
47+
there’s no container to read logs from, so you’ll need to check the log files
48+
directly in the ToolHive application directory. The path depends on your platform:
4449

4550
- **macOS**: `~/Library/Application Support/toolhive/logs/<SERVER_NAME>.log`
4651
- **Linux**: `~/.local/share/toolhive/logs/<SERVER_NAME>.log`

docs/toolhive/guides-cli/run-mcp-servers.mdx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ thv run fetch
3333
### Remote MCP servers
3434

3535
Remote MCP servers in the registry don't run as local containers but instead use
36-
ToolHive's transparent http proxy to forward requests to remote servers. For
36+
ToolHive's transparent HTTP proxy to forward requests to remote servers. For
3737
example:
3838

3939
```bash
@@ -61,6 +61,8 @@ To run a remote notion mcp server, you should use the `notion-remote` name.
6161
thv run notion-remote
6262
```
6363

64+
Use `thv search <NAME>` or `thv registry list` to discover available servers.
65+
6466
:::
6567

6668
:::info[What's happening?]
@@ -657,20 +659,21 @@ registration, eliminating the need to pre-configure client ID and secret.
657659

658660
#### OIDC authentication
659661

660-
For servers using OpenID Connect (OIDC), you can provide the issuer URL:
662+
For servers using OpenID Connect (OIDC), provide the issuer URL, client ID, and
663+
client secret obtained from the application provider:
661664

662665
```bash
663666
thv run https://api.example.com/mcp \
664667
--name my-server \
665668
--remote-auth-issuer https://auth.example.com \
666-
--remote-auth-client-id my-client-id
669+
--remote-auth-client-id my-client-id \
667670
--remote-auth-client-secret my-client-secret
668671
```
669672

670673
#### OAuth2 authentication
671674

672-
For servers using OAuth2, you can specify the authorization and token URLs
673-
manually:
675+
For servers using OAuth2, specify the authorization and token URLs along with
676+
the client ID and secret obtained from the application provider:
674677

675678
```bash
676679
thv run https://api.example.com/mcp \
@@ -855,11 +858,7 @@ If a server crashes or exits unexpectedly:
855858

856859
If a remote MCP server authentication fails:
857860

858-
1. Check the server logs for authentication errors:
859-
860-
```bash
861-
thv logs <SERVER_NAME>
862-
```
861+
1. Check the server logs for authentication errors (see [View server logs](./manage-mcp-servers.md#view-server-logs) for the correct log file path on your platform)
863862

864863
2. Verify the issuer URL is correct and accessible
865864

0 commit comments

Comments
 (0)