You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/capability/setup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ The MCP server loads environment variables from `.env` files on startup (see `_l
125
125
The loading chain (in order):
126
126
127
127
1.**Host MCP config `env` block** — values set here become process environment variables *before* the server starts. They always win.
128
-
2.`**--env-file` (if provided)** — if you pass `--env-file /path/to/.env`, only that file is loaded. Skips step 3a.
128
+
2.**`--env-file` (if provided)** — if you pass `--env-file /path/to/.env`, this file is loaded. Skips step 3a.
129
129
3.**Automatic `.env` discovery (if `--env-file` is not provided):**
130
130
-**3a. CWD walk-up** — `find_dotenv(usecwd=True)` walks up from the current working directory to find the nearest `.env`. This may be the host agent's own `.env` (e.g. Hermes's project directory).
131
131
-**3b. ms-agent package root** — always loads `<ms-agent-root>/.env` (three directories up from `mcp_server.py`). This is the recommended location for ms-agent-specific keys.
0 commit comments