From c76ac66bdd7b825e826079d97ed86af8591d2c2a Mon Sep 17 00:00:00 2001 From: Tyler Lafleur Date: Fri, 19 Sep 2025 21:03:25 -0500 Subject: [PATCH] Fix Railway port configuration: remove hardcoded port, let Railway set PORT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PROBLEM FIXED: Railway was showing hardcoded --port 8000 in start command, causing port mismatch. Railway expects apps to listen on PORT environment variable (8080). SOLUTION: - Updated railway.json start command to include --host 0.0.0.0 - Explicitly removed any --port argument - Let Railway set PORT via environment variable RESULT: MCP server will now listen on Railway's assigned port (8080) instead of hardcoded 8000, fixing the 502 error and enabling ChatGPT SSE access. 🚀 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude --- railway.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railway.json b/railway.json index ec45c07a..9eb0d4d9 100644 --- a/railway.json +++ b/railway.json @@ -4,7 +4,7 @@ "buildCommand": "cd mcp_server && uv sync" }, "deploy": { - "startCommand": "cd mcp_server && uv run graphiti_mcp_server.py --transport sse", + "startCommand": "cd mcp_server && uv run graphiti_mcp_server.py --transport sse --host 0.0.0.0", "restartPolicyType": "on_failure", "restartPolicyMaxRetries": 10 }