From e5126234a0d869c677329c8aad7db40c6fdcebc7 Mon Sep 17 00:00:00 2001 From: mukunda katta Date: Mon, 27 Apr 2026 19:03:51 -0700 Subject: [PATCH] Document env vars for MCP dev mode --- README.v2.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.v2.md b/README.v2.md index d0851c04e..bc8485b90 100644 --- a/README.v2.md +++ b/README.v2.md @@ -1169,6 +1169,17 @@ uv run mcp dev server.py --with pandas --with numpy uv run mcp dev server.py --with-editable . ``` +`mcp dev` runs the server through the MCP Inspector and inherits environment +variables from your shell. Set environment variables before the command when +testing secrets or configuration: + +```bash +API_KEY=abc123 DB_URL=postgres://... uv run mcp dev server.py +``` + +For persistent Claude Desktop configuration, use `mcp install` with `-v` or +`-f` as shown below. + ### Claude Desktop Integration Once your server is ready, install it in Claude Desktop: