From 7da435c1070d559b5d4f03806aa71c7d6ae3f40a Mon Sep 17 00:00:00 2001 From: Barry Yip Date: Thu, 15 May 2025 01:38:36 +0800 Subject: [PATCH] Change default port to 8080 --- Dockerfile | 7 ++++--- src/index.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1195063..6d340c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,8 @@ COPY . . # Build the TypeScript code RUN npm run build -# Expose any port if needed (Not required for stdio deployment) +# Expose HTTP port +EXPOSE 8080 -# Default command to run the MCP server -CMD ["node", "build/index.js"] \ No newline at end of file +# Default command to run the MCP server with HTTP transport +CMD ["node", "build/index.js", "--transport", "http", "--port", "8080"] diff --git a/src/index.ts b/src/index.ts index d02a6df..a378482 100644 --- a/src/index.ts +++ b/src/index.ts @@ -49,7 +49,7 @@ const config = { return parseInt(process.argv[portIndex + 1]); } // Default port - return 3000; + return 8080; })() };