Skip to content

Commit 1f6c317

Browse files
nearestnaborstorresmateo
authored andcommitted
emphasize env file changes need a restart for the server
1 parent 6c57e80 commit 1f6c317

File tree

1 file changed

+1
-1
lines changed
  • app/en/home/build-tools/create-a-mcp-server

1 file changed

+1
-1
lines changed

app/en/home/build-tools/create-a-mcp-server/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This generates a complete project with:
6161

6262
- **server.py** Main server file with MCPApp and example tools
6363
- **pyproject.toml** Dependencies and project configuration
64-
- **.env.example** Example `.env` file containing a secret required by one of the generated tools in `server.py`
64+
- **.env.example** Example `.env` file containing a secret required by one of the generated tools in `server.py`. Environments are loaded on server start, so **if you update the `.env` file, you will need to restart your server.**
6565

6666
`server.py` includes proper structure with command-line argument handling. It creates an `MCPApp`, defines tools with `@app.tool`, and runs with `app.run()`:
6767

0 commit comments

Comments
 (0)