feat(cli): Replace mcp run with click CLI and runtime options

BREAKING CHANGE: FASTMCP_-prefixed env vars have been replaced by CLI
arguments. Refer to the README for updated usage.

Usage: python -m nextcloud_mcp_server.app [OPTIONS]

Options:
  -h, --host TEXT
  -p, --port INTEGER
  -w, --workers INTEGER
  -r, --reload
  --log-level [critical|error|warning|info|debug|trace]
  -t, --transport [sse|streamable-http]
  -e, --enable-app [notes|tables|webdav|calendar|contacts]
                                  Enable specific Nextcloud app APIs. Can be
                                  specified multiple times. If not specified,
                                  all apps are enabled.
  --help                          Show this message and exit.
This commit is contained in:
Chris Coutinho
2025-09-10 17:19:12 +02:00
parent d01c6ee0d0
commit bbd8d1cf63
7 changed files with 317 additions and 135 deletions
+3 -1
View File
@@ -46,13 +46,15 @@ services:
mcp:
build: .
command: ["--host", "0.0.0.0", "--log-level", "debug"]
ports:
- 8000:8000
environment:
- NEXTCLOUD_HOST=http://app:80
- NEXTCLOUD_USERNAME=admin
- NEXTCLOUD_PASSWORD=admin
- FASTMCP_HOST=0.0.0.0
volumes:
- ./nextcloud_mcp_server:/app/nextcloud_mcp_server:ro
volumes:
nextcloud: