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: app/en/home/build-tools/create-a-mcp-server/page.mdx
+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
@@ -61,7 +61,7 @@ This generates a complete project with:
61
61
62
62
-**server.py** Main server file with MCPApp and example tools
63
63
-**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.**
65
65
66
66
`server.py` includes proper structure with command-line argument handling. It creates an `MCPApp`, defines tools with `@app.tool`, and runs with `app.run()`:
0 commit comments