@@ -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
1613The [ 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
4744Currently, 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):
7875thv 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
8787Enable [ network isolation] ( ../guides-cli/network-isolation.mdx ) using the
@@ -94,7 +94,7 @@ thv run --isolate-network context7
9494Combine 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 >
0 commit comments