Refactor server startup functions
Rename `startServer` to `startStreamableHTTPServer` and add a new `startStdioServer` helper to make the transport type explicit. Remove the `ServerOptions` interface in favor of reading `PORT` directly from the environment inside the function (defaulting to `3001`). Also update Python examples to default to port `3001` for consistency. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9557d41ce7
commit
6eb82b5562
1 changed files with 338 additions and 352 deletions
|
|
@ -58,7 +58,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
VIEW_URI = "ui://say-demo/view.html"
|
||||
HOST = os.environ.get("HOST", "0.0.0.0")
|
||||
PORT = int(os.environ.get("PORT", "3109"))
|
||||
PORT = int(os.environ.get("PORT", "3001"))
|
||||
|
||||
# Speaker icon as SVG data URI
|
||||
SPEAKER_ICON = Icon(
|
||||
|
|
|
|||
Loading…
Reference in a new issue