Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · mcp

Recipes changeddocs/2026-07-28/tools/inspector/recipes

Nearest release: v2.1.295, published 5 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 8 Oct 2026 12:58 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Oct 2026 18:37 UTC.

Upstream edited
Recorded here
Lines+27added
Lines−27removed
From line 183 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits10to this page, all time

The whole hunk

from line 183, old and new numbered
/
lines
from line 183
183183 
184184Hand the key to the container **as a file** with `MCP_INSPECTOR_SECRET_KEY_FILE`, not as an environment variable. A key passed with `-e MCP_INSPECTOR_SECRET_KEY=…` is readable by anyone who can run `docker inspect` or `docker exec`.
185185 
186**docker run**
186> [tab] docker run
187>
188> ```bash theme={null}
189> docker run --rm -p 127.0.0.1:6274:6274 \
190> -v mcp-inspector-data:/home/node/.mcp-inspector \
191> -v "$HOME/.config/mcp-inspector/secret-key:/run/secrets/mcp_inspector_secret_key:ro" \
192> -e MCP_INSPECTOR_SECRET_KEY_FILE=/run/secrets/mcp_inspector_secret_key \
193> ghcr.io/modelcontextprotocol/inspector
194> ```
187195 
188```bash theme={null}
189docker run --rm -p 127.0.0.1:6274:6274 \
190 -v mcp-inspector-data:/home/node/.mcp-inspector \
191 -v "$HOME/.config/mcp-inspector/secret-key:/run/secrets/mcp_inspector_secret_key:ro" \
192 -e MCP_INSPECTOR_SECRET_KEY_FILE=/run/secrets/mcp_inspector_secret_key \
193 ghcr.io/modelcontextprotocol/inspector
194```
195 
196**Compose secrets**
197 
198```yaml theme={null}
199services:
200 inspector:
201 image: ghcr.io/modelcontextprotocol/inspector
202 ports: ["127.0.0.1:6274:6274"]
203 volumes: ["mcp-inspector-data:/home/node/.mcp-inspector"]
204 environment:
205 MCP_INSPECTOR_SECRET_KEY_FILE: /run/secrets/mcp_inspector_secret_key
206 secrets: [mcp_inspector_secret_key]
207secrets:
208 mcp_inspector_secret_key:
209 file: ${HOME}/.config/mcp-inspector/secret-key
210volumes:
211 mcp-inspector-data:
212```
196> [tab] Compose secrets
197>
198> ```yaml theme={null}
199> services:
200> inspector:
201> image: ghcr.io/modelcontextprotocol/inspector
202> ports: ["127.0.0.1:6274:6274"]
203> volumes: ["mcp-inspector-data:/home/node/.mcp-inspector"]
204> environment:
205> MCP_INSPECTOR_SECRET_KEY_FILE: /run/secrets/mcp_inspector_secret_key
206> secrets: [mcp_inspector_secret_key]
207> secrets:
208> mcp_inspector_secret_key:
209> file: ${HOME}/.config/mcp-inspector/secret-key
210> volumes:
211> mcp-inspector-data:
212> ```
213213 
214214Without Swarm, Compose secrets are bind mounts that keep the host file's owner and mode, so the `0600` key file must be owned by uid `1000`. On a Linux host where your uid is different, run `sudo chown 1000 ~/.config/mcp-inspector/secret-key` rather than loosening its mode. Supply the **same** key on every run.
215215 
Feedback