Skip to content

Commit e512623

Browse files
committed
Document env vars for MCP dev mode
1 parent 3d7b311 commit e512623

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.v2.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,17 @@ uv run mcp dev server.py --with pandas --with numpy
11691169
uv run mcp dev server.py --with-editable .
11701170
```
11711171

1172+
`mcp dev` runs the server through the MCP Inspector and inherits environment
1173+
variables from your shell. Set environment variables before the command when
1174+
testing secrets or configuration:
1175+
1176+
```bash
1177+
API_KEY=abc123 DB_URL=postgres://... uv run mcp dev server.py
1178+
```
1179+
1180+
For persistent Claude Desktop configuration, use `mcp install` with `-v` or
1181+
`-f` as shown below.
1182+
11721183
### Claude Desktop Integration
11731184

11741185
Once your server is ready, install it in Claude Desktop:

0 commit comments

Comments
 (0)