Skip to content

Commit be466ab

Browse files
author
Chris Coutinho
committed
Update README for deployment
1 parent 8956945 commit be466ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ NEXTCLOUD_PASSWORD=your_nextcloud_app_password_or_login_password
243243
* `NEXTCLOUD_HOST`: The full URL of your Nextcloud instance.
244244
* `NEXTCLOUD_USERNAME`: Your Nextcloud username.
245245
* `NEXTCLOUD_PASSWORD`: **Important:** It is highly recommended to use a dedicated Nextcloud App Password for security. You can generate one in your Nextcloud Security settings. Alternatively, you can use your regular login password, but this is less secure.
246+
* `FASTMCP_HOST`: _Optional:_ By default FastMCP binds to localhost. Use this variable to set a different binding address (e.g. `0.0.0.0`)
246247
247248
## Running the Server
248249
@@ -255,10 +256,12 @@ Ensure your environment variables are loaded, then run the server using `mcp run
255256
export $(grep -v '^#' .env | xargs)
256257

257258
# Run the server
258-
mcp run --transport sse nextcloud_mcp_server.server:mcp
259+
mcp run --transport sse nextcloud_mcp_server.app:mcp
259260
```
260261

261-
The server will start, typically listening on `http://0.0.0.0:8000`.
262+
The server will start, typically listening on `http://localhost:8000`.
263+
264+
> NOTE: To make the server bind to a different address, use the FASTMCP_HOST environmental variable
262265
263266
### Using Docker
264267

0 commit comments

Comments
 (0)