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 <noreply@anthropic.com>
11 lines
No EOL
316 B
JSON
11 lines
No EOL
316 B
JSON
{
|
|
"$schema": "https://railway.app/railway.schema.json",
|
|
"build": {
|
|
"buildCommand": "cd mcp_server && uv sync"
|
|
},
|
|
"deploy": {
|
|
"startCommand": "cd mcp_server && uv run graphiti_mcp_server.py --transport sse --host 0.0.0.0",
|
|
"restartPolicyType": "on_failure",
|
|
"restartPolicyMaxRetries": 10
|
|
}
|
|
} |