Skip to content

Commit a40f131

Browse files
committed
Move Tabs and TabItem to the global scope
Signed-off-by: Dan Barr <[email protected]>
1 parent 01363ee commit a40f131

22 files changed

+19
-59
lines changed

docs/theme-preview.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ A standard Markdown table:
182182
MDX Tabs component, default theme
183183
([reference](https://docusaurus.io/docs/markdown-features/tabs))
184184

185-
import Tabs from '@theme/Tabs';
186-
import TabItem from '@theme/TabItem';
187-
188185
<Tabs>
189186
<TabItem value='apple' label='Apple' default>
190187
This is an apple 🍎

docs/toolhive/guides-cli/build-containers.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ description:
55
CLI.
66
---
77

8-
import Tabs from '@theme/Tabs';
9-
import TabItem from '@theme/TabItem';
10-
118
This guide explains how to use the [`thv build`](../reference/cli/thv_build.md)
129
command to build MCP server containers from protocol schemes without running
1310
them. This is useful for pre-building containers for Kubernetes deployments,

docs/toolhive/guides-cli/install.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ title: Install ToolHive
33
description: How to install, upgrade, and manage the ToolHive CLI.
44
---
55

6-
import Tabs from '@theme/Tabs';
7-
import TabItem from '@theme/TabItem';
8-
96
This guide walks you through installing, upgrading, and managing the ToolHive
107
CLI ([`thv`](../reference/cli/thv.md)).
118

docs/toolhive/guides-cli/network-isolation.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ title: Network isolation
33
description: How to configure network isolation for MCP servers in ToolHive
44
---
55

6-
import Tabs from '@theme/Tabs';
7-
import TabItem from '@theme/TabItem';
8-
96
Most MCP servers require network access to function properly—for example, to
107
access APIs, download data, or communicate with other services. However,
118
malicious or misconfigured servers can also exfiltrate sensitive data or

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ title: Run MCP servers
33
description: How to run MCP servers with the ToolHive CLI.
44
---
55

6-
import Tabs from '@theme/Tabs';
7-
import TabItem from '@theme/TabItem';
8-
96
This guide explains how to run Model Context Protocol (MCP) servers using
107
ToolHive. It covers how to run servers from the ToolHive registry, customize
118
server settings, and run custom servers using Docker images or protocol schemes.

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ description:
44
How to securely manage API tokens and other sensitive data in ToolHive.
55
---
66

7-
import Tabs from '@theme/Tabs';
8-
import TabItem from '@theme/TabItem';
9-
107
MCP servers often need secrets like API tokens, connection strings, and other
118
sensitive parameters. ToolHive provides built-in secrets management features,
129
letting you manage these values securely without exposing them in plaintext

docs/toolhive/guides-mcp/_template.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ last_update:
77
date: YYYY-MM-DD
88
---
99

10-
import Tabs from '@theme/Tabs';
11-
import TabItem from '@theme/TabItem';
12-
1310
## Overview
1411

1512
A brief overview of the MCP server, its purpose, and key features. Link to the

docs/toolhive/guides-mcp/context7.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ last_update:
88
date: 2025-08-27
99
---
1010

11-
import Tabs from '@theme/Tabs';
12-
import TabItem from '@theme/TabItem';
13-
1411
## Overview
1512

1613
The [Context7 MCP server](https://github.com/upstash/context7) provides
@@ -45,9 +42,9 @@ While Context7 works without an API key, registering at
4542
:::note
4643

4744
Currently, the Context7 MCP server only supports a CLI argument for the API key.
48-
This means ToolHive's secrets management cannot be used to inject the key.
49-
Instead, you must pass the API key directly as a command-line argument when
50-
starting the server.
45+
This means ToolHive's secrets management cannot be used to inject the key as an
46+
environment variable. Instead, you must pass the API key directly as a
47+
command-line argument when starting the server.
5148

5249
:::
5350

@@ -78,10 +75,13 @@ Run with the default configuration (no API key required for basic usage):
7875
thv run context7
7976
```
8077

81-
If you have a Context7 API key for higher rate limits, pass it as an argument:
78+
If you have a Context7 API key for higher rate limits, you can pass it directly
79+
as a command-line argument. You can store the key in a ToolHive secret and
80+
retrieve it when starting the server:
8281

8382
```bash
84-
thv run context7 -- --api-key <YOUR_API_KEY>
83+
thv secret set context7
84+
thv run context7 -- --api-key $(thv secret get context7)
8585
```
8686

8787
Enable [network isolation](../guides-cli/network-isolation.mdx) using the
@@ -94,7 +94,7 @@ thv run --isolate-network context7
9494
Combine API key with network isolation:
9595

9696
```bash
97-
thv run --isolate-network context7 -- --api-key <YOUR_API_KEY>
97+
thv run --isolate-network context7 -- --api-key $(thv secret get context7)
9898
```
9999

100100
</TabItem>

docs/toolhive/guides-mcp/fetch.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ last_update:
77
date: 2025-08-15
88
---
99

10-
import Tabs from '@theme/Tabs';
11-
import TabItem from '@theme/TabItem';
12-
1310
## Overview
1411

1512
A simple, lightweight MCP server that retrieves data from a website to add

docs/toolhive/guides-mcp/filesystem.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ last_update:
77
date: 2025-08-15
88
---
99

10-
import Tabs from '@theme/Tabs';
11-
import TabItem from '@theme/TabItem';
1210
import useBaseUrl from '@docusaurus/useBaseUrl';
1311
import ThemedImage from '@theme/ThemedImage';
1412

0 commit comments

Comments
 (0)