From e1305888ca83f76e347a378f0a73dd2aac5e40a4 Mon Sep 17 00:00:00 2001 From: Damir Dulic Date: Wed, 11 Mar 2026 16:04:50 +0000 Subject: [PATCH 1/2] Fix default port to match Dockerfile (8080 -> 8000) The Dockerfile already sets SUPERNOTE_PORT=8000 but the config.py default was still 8080, causing a mismatch when running outside Docker. --- supernote/server/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supernote/server/config.py b/supernote/server/config.py index 495238c..338eac4 100644 --- a/supernote/server/config.py +++ b/supernote/server/config.py @@ -60,7 +60,7 @@ class ServerConfig(DataClassYAMLMixin): Env Var: `SUPERNOTE_HOST` """ - port: int = 8080 + port: int = 8000 """Port to bind the server to. Env Var: `SUPERNOTE_PORT` @@ -73,7 +73,7 @@ class ServerConfig(DataClassYAMLMixin): """ _base_url: str | None = field(default=None, metadata={"name": "base_url"}) - """Base URL for the main server (port 8080). + """Base URL for the main server (port 8000). Used for generating links and for the MCP Authorization Server issuer. """ From 1161902b155d52a5ba9c7055bf60005663b92e8e Mon Sep 17 00:00:00 2001 From: Damir Dulic Date: Wed, 11 Mar 2026 16:07:28 +0000 Subject: [PATCH 2/2] Fix ephemeral mode default port (8080 -> 8000) --- supernote/cli/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supernote/cli/server.py b/supernote/cli/server.py index b44f163..3bd0929 100644 --- a/supernote/cli/server.py +++ b/supernote/cli/server.py @@ -28,7 +28,7 @@ def serve_run(args: argparse.Namespace) -> None: # Set environment variables for the server process os.environ["SUPERNOTE_EPHEMERAL"] = "true" if not os.getenv("SUPERNOTE_PORT"): - os.environ["SUPERNOTE_PORT"] = "8080" + os.environ["SUPERNOTE_PORT"] = "8000" if not os.getenv("SUPERNOTE_HOST"): os.environ["SUPERNOTE_HOST"] = "127.0.0.1" os.environ["SUPERNOTE_STORAGE_DIR"] = str(tmp_path)