fix: enable --transport flag override, set stdio as default for docker container

This commit is contained in:
Kirill Sirotkin 2025-11-04 12:48:59 +02:00
parent 9a7a9d7fea
commit acc6f5ce96
1 changed files with 3 additions and 1 deletions

View File

@ -20,4 +20,6 @@ RUN npm run build
EXPOSE 8080 EXPOSE 8080
# Default command to run the MCP server with HTTP transport # Default command to run the MCP server with HTTP transport
CMD ["node", "build/index.js", "--transport", "http", "--port", "8080"] # Use ENTRYPOINT + CMD for flexibility
ENTRYPOINT ["node", "build/index.js"]
CMD ["--transport", "stdio", "--port", "8080"]