Skip to content

Commit cf8b75e

Browse files
authored
Use collapsible blocks for troubleshooting notes (#35)
* Update troubleshooting sections with collapsible blocks * Clean up README badge links * Fix formatting
1 parent 8c4dc1a commit cf8b75e

File tree

11 files changed

+159
-38
lines changed

11 files changed

+159
-38
lines changed

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"tables": false
2121
},
2222
"no-bare-urls": false,
23+
"no-inline-html": {
24+
"allowed_elements": ["details", "summary"]
25+
},
2326
"proper-names": {
2427
"code_blocks": false,
2528
"names": ["Copilot", "GitHub", "ToolHive"]

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Stacklok docs <!-- omit in toc -->
22

3-
[![GitHub deployments](https://img.shields.io/github/deployments/stacklok/docs-website/Production?logo=vercel&style=flat&label=Vercel%20deployment)](https://github.com/stacklok/docs-website/deployments/Production)
3+
[![GitHub deployments][deployment-img]][deployment]
44

55
This repository contains the public-facing docs for Stacklok's projects, hosted
66
at [https://docs.stacklok.com](https://docs.stacklok.com).
@@ -26,7 +26,7 @@ You'll need Node.js available (v22 recommended) or VS Code with the
2626
[Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
2727
extension and Docker.
2828

29-
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/stacklok/docs-website)
29+
[![Open in Dev Containers][devcontainer-img]][devcontainer]
3030

3131
```bash
3232
npm install
@@ -80,3 +80,13 @@ the `main` branch.
8080
## About
8181

8282
This site is built with [Docusaurus](https://docusaurus.io/).
83+
84+
<!-- badge links -->
85+
86+
[deployment-img]:
87+
https://img.shields.io/github/deployments/stacklok/docs-website/Production?logo=vercel&label=Vercel%20deployment
88+
[deployment]: https://github.com/stacklok/docs-website/deployments/Production
89+
[devcontainer-img]:
90+
https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue
91+
[devcontainer]:
92+
https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/stacklok/docs-website

docs/toolhive/guides-cli/client-configuration.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ ToolHive provides.
160160

161161
## Troubleshooting
162162

163-
### Client is not detected by `thv client setup`
163+
<details>
164+
<summary>Client is not detected by `thv client setup`</summary>
164165

165166
If ToolHive doesn't detect your client:
166167

@@ -177,7 +178,10 @@ If ToolHive doesn't detect your client:
177178
thv config register-client <CLIENT_NAME>
178179
```
179180

180-
### Client can't connect to MCP server
181+
</details>
182+
183+
<details>
184+
<summary>Client can't connect to MCP server</summary>
181185

182186
If your client can't connect to the MCP server:
183187

@@ -202,7 +206,10 @@ If your client can't connect to the MCP server:
202206

203207
4. Restart your client application.
204208

205-
### Client can connect but tools aren't available
209+
</details>
210+
211+
<details>
212+
<summary>Client can connect but tools aren't available</summary>
206213

207214
If your client connects to the MCP server but tools aren't available:
208215

@@ -227,7 +234,10 @@ If your client connects to the MCP server but tools aren't available:
227234
5. If you've implemented authentication for your MCP server, make sure the
228235
client has the necessary permissions to access the tools.
229236

230-
### Containerized client can't connect to MCP server
237+
</details>
238+
239+
<details>
240+
<summary>Containerized client can't connect to MCP server</summary>
231241

232242
If you're running an MCP client inside a container and it can't connect to an
233243
MCP server running on the same host, make sure you use the correct host address.
@@ -242,7 +252,10 @@ connectivity.
242252
Refer to your containerization platform's documentation for details on how to
243253
configure network access between containers and the host.
244254

245-
### VS Code can't connect to some streamable-http servers
255+
</details>
256+
257+
<details>
258+
<summary>VS Code can't connect to some streamable-http servers</summary>
246259

247260
You might encounter errors with Visual Studio Code connecting to some
248261
Python-based MCP servers using the Streamable HTTP transport protocol:
@@ -267,3 +280,5 @@ There are two workarounds:
267280

268281
You can track a proposed fix for this issue in the
269282
[MCP Python SDK repository](https://github.com/modelcontextprotocol/python-sdk/pull/781).
283+
284+
</details>

docs/toolhive/guides-cli/custom-permissions.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ When creating and using permission profiles:
349349

350350
## Troubleshooting
351351

352-
### File system access issues
352+
<details>
353+
<summary>File system access issues</summary>
353354

354355
If your MCP server can't access the file system as expected:
355356

@@ -365,7 +366,10 @@ If your MCP server can't access the file system as expected:
365366

366367
4. Restart the server with the updated profile or a corrected volume mount
367368

368-
### Network connectivity issues
369+
</details>
370+
371+
<details>
372+
<summary>Network connectivity issues</summary>
369373

370374
If your MCP server can't connect to external services:
371375

@@ -381,3 +385,5 @@ If your MCP server can't connect to external services:
381385

382386
4. Try temporarily using the default `network` profile to confirm it's a
383387
permissions issue
388+
389+
</details>

docs/toolhive/guides-cli/install.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ MCP servers. See [Explore the registry](./registry.md) and
323323

324324
## Troubleshooting
325325

326-
### Permission denied errors
326+
<details>
327+
<summary>Permission denied errors</summary>
327328

328329
If you see "permission denied" errors when running ToolHive:
329330

@@ -346,7 +347,10 @@ If you see "permission denied" errors when running ToolHive:
346347
[Docker documentation](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user)
347348
for more details.
348349

349-
### Upgrade error on Windows
350+
</details>
351+
352+
<details>
353+
<summary>Upgrade error on Windows</summary>
350354

351355
If you encounter an error when upgrading ToolHive on Windows, it may be due to
352356
the ToolHive executable being locked by a running MCP server proxy.
@@ -383,6 +387,8 @@ To resolve this:
383387
# repeat for each server
384388
```
385389

390+
</details>
391+
386392
### Other issues
387393

388394
For other installation issues, check the

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ control your servers.
383383

384384
## Troubleshooting
385385

386-
### Server fails to start
386+
<details>
387+
<summary>Server fails to start</summary>
387388

388389
If a server fails to start:
389390

@@ -392,7 +393,10 @@ If a server fails to start:
392393
3. Check if the port is already in use
393394
4. Look at the error message for specific issues
394395

395-
### Server starts but isn't accessible
396+
</details>
397+
398+
<details>
399+
<summary>Server starts but isn't accessible</summary>
396400

397401
If a server starts but isn't accessible:
398402

@@ -407,7 +411,10 @@ If a server starts but isn't accessible:
407411
3. Make sure clients are properly configured (see
408412
[Client configuration](client-configuration.md))
409413

410-
### Server crashes or exits unexpectedly
414+
</details>
415+
416+
<details>
417+
<summary>Server crashes or exits unexpectedly</summary>
411418

412419
If a server crashes or exits unexpectedly:
413420

@@ -430,3 +437,5 @@ If a server crashes or exits unexpectedly:
430437
```
431438

432439
4. Check if the server requires any secrets or environment variables
440+
441+
</details>

docs/toolhive/guides-cli/secrets-management.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ in the `MCPVault` vault and passes them to the `slack` MCP server as the
278278

279279
## Troubleshooting
280280

281-
### Keyring access issues
281+
<details>
282+
<summary>Keyring access issues</summary>
282283

283284
If you run into errors related to the system keyring:
284285

@@ -294,7 +295,10 @@ If you run into errors related to the system keyring:
294295
sudo dnf install gnome-keyring
295296
```
296297

297-
### Secret not available to MCP server
298+
</details>
299+
300+
<details>
301+
<summary>Secret not available to MCP server</summary>
298302

299303
If your MCP server can't access a secret:
300304

@@ -324,13 +328,19 @@ If your MCP server can't access a secret:
324328
thv logs <server-name>
325329
```
326330

327-
### Forgot encryption password
331+
</details>
332+
333+
<details>
334+
<summary>Forgot encryption password</summary>
328335

329336
If the keyring entry is lost or corrupted and you forget your encryption
330337
password, you won't be able to access your secrets. In this case, delete the
331338
[encrypted secrets file](#reset-your-secret-store) and recreate your secrets.
332339

333-
### Issues accessing 1Password secrets
340+
</details>
341+
342+
<details>
343+
<summary>Issues accessing 1Password secrets</summary>
334344

335345
If you can't access 1Password secrets:
336346

@@ -353,3 +363,5 @@ If you can't access 1Password secrets:
353363
```bash
354364
thv secret get op://<vault-name>/<item-name>/[section-name/]<field-name>
355365
```
366+
367+
</details>

docs/toolhive/guides-k8s/deploy-operator-helm.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ configured during installation.
246246

247247
## Troubleshooting
248248

249-
### Authentication error with ghcr.io
249+
<details>
250+
<summary>Authentication error with ghcr.io</summary>
250251

251252
If you encounter an authentication error when pulling the Helm chart, it might
252253
indicate a problem with your access to the GitHub Container Registry
@@ -259,7 +260,10 @@ your token has expired or been revoked.
259260
See the GitHub documentation to
260261
[re-authenticate to the registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic).
261262

262-
### Operator pod fails to start
263+
</details>
264+
265+
<details>
266+
<summary>Operator pod fails to start</summary>
263267

264268
If the operator pod is not starting or is in a `CrashLoopBackOff` state, check
265269
the pod logs for error messages:
@@ -284,7 +288,10 @@ Common causes include:
284288
resources available
285289
- **Image pull issues**: Verify that the cluster can pull images from `ghcr.io`
286290

287-
### CRDs installation fails
291+
</details>
292+
293+
<details>
294+
<summary>CRDs installation fails</summary>
288295

289296
If the CRDs installation fails, you might see errors about existing resources or
290297
permission issues:
@@ -304,7 +311,10 @@ helm uninstall toolhive-operator-crds
304311
helm upgrade -i toolhive-operator-crds oci://ghcr.io/stacklok/toolhive/toolhive-operator-crds
305312
```
306313

307-
### Namespace creation issues
314+
</details>
315+
316+
<details>
317+
<summary>Namespace creation issues</summary>
308318

309319
If you encounter permission errors when creating the `toolhive-system`
310320
namespace, create it manually first:
@@ -319,7 +329,10 @@ Then install the operator without the `--create-namespace` flag:
319329
helm upgrade -i toolhive-operator oci://ghcr.io/stacklok/toolhive/toolhive-operator -n toolhive-system
320330
```
321331

322-
### Helm chart not found
332+
</details>
333+
334+
<details>
335+
<summary>Helm chart not found</summary>
323336

324337
If Helm cannot find the chart, ensure you're using the correct OCI registry URL
325338
and that your Helm version supports OCI registries (v3.8.0+):
@@ -332,10 +345,15 @@ helm version
332345
helm pull oci://ghcr.io/stacklok/toolhive/toolhive-operator
333346
```
334347

335-
### Network connectivity issues
348+
</details>
349+
350+
<details>
351+
<summary>Network connectivity issues</summary>
336352

337353
If you're experiencing network timeouts or connection issues:
338354

339355
- Verify your cluster has internet access to reach `ghcr.io`
340356
- Check if your organization uses a proxy or firewall that might block access
341357
- Consider using a private registry mirror if direct access is restricted
358+
359+
</details>

0 commit comments

Comments
 (0)