From 4b3def18b0c9eec249a9be750b8b95039106d060 Mon Sep 17 00:00:00 2001 From: Matthias Bach <64144070+matthias-bach-by@users.noreply.github.com> Date: Thu, 14 Aug 2025 08:31:07 +0200 Subject: [PATCH] Fix documentation for configuring the MCP in VS Code Docker, by default, does not pass through environment variables. Thus, when passing the Cortex API token via an environment variable, we need to ask the Docker command to pass it through. Otherwise, access to Cortex will fail with a 401 error. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e19db58..4b47a0e 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,8 @@ Sample `.vscode/mcp.json` "run", "--rm", "-i", + "--env", + "CORTEX_API_TOKEN", "ghcr.io/cortexapps/cortex-mcp:latest" ], "env": {