Commit graph

8 commits

Author SHA1 Message Date
Tyler Lafleur
151c12f806 Fix Railway build: regenerate uv.lock and restore cd commands
- Regenerated mcp_server/uv.lock after dependency changes
- Restored cd commands in railway.json for Railway compatibility
- Ensures lockfile is in sync with pyproject.toml changes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 21:38:24 -05:00
Tyler Lafleur
56f5d154c7 Fix Railway deployment configuration and dependencies
- Update railway.json to use absolute paths instead of cd commands
- Remove duplicate graphiti-core dependency from mcp_server/pyproject.toml
- Configure proper PYTHONPATH for Railway deployment context

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 21:35:58 -05:00
Tyler Lafleur
69209f9865 Nuclear option: direct Python execution with hardcoded port 8080
PROBLEM:
Despite multiple attempts, MCP server still runs on port 8000.
uv run and environment variables aren't working as expected.

SOLUTION:
Simplest possible approach - direct Python execution:
- Remove 'uv run' complexity
- Remove environment variable setting
- Hardcode --port 8080 in command arguments
- Direct python execution

COMMAND:
cd mcp_server && python graphiti_mcp_server.py --transport sse --host 0.0.0.0 --port 8080

This MUST work - no complexity, just direct execution with explicit port.

🚀 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 21:20:29 -05:00
Tyler Lafleur
76332e34bd Fix Railway port configuration: explicitly force port 8080
PROBLEM:
MCP server was using port 8000 despite PORT=8080 being set in Railway.
Environment variable wasn't being read correctly by the Python process.

SOLUTION:
- Set PORT=8080 in start command environment
- Add explicit --port 8080 command argument
- Double enforcement ensures port 8080 is used

EXPECTED RESULT:
- MCP server will start on port 8080 (not 8000)
- Railway load balancer can route traffic correctly
- SSE endpoint accessible for ChatGPT at /sse
- No more 502 errors

🚀 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 21:13:44 -05:00
Tyler Lafleur
c76ac66bdd Fix Railway port configuration: remove hardcoded port, let Railway set PORT
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>
2025-09-19 21:03:25 -05:00
Tyler Lafleur
88ebb6849c Switch to Railway Python buildpack: fix uv.lock and remove Docker forcing
PROBLEM SOLVED:
- Fixed uv.lock sync error by regenerating lockfile
- Railway now uses Python buildpack instead of fighting Docker auto-detection

CHANGES:
- Updated mcp_server/uv.lock to sync with pyproject.toml
- Removed Docker forcing files (Dockerfile, nixpacks.toml, .dockerignore)
- Updated railway.json for Python buildpack with proper start command
- Simplified approach: let Railway handle Python environment naturally

DEPLOYMENT:
- Build: 'cd mcp_server && uv sync'
- Start: 'cd mcp_server && uv run graphiti_mcp_server.py --transport sse'
- Should deploy in ~2-3 minutes with Python buildpack

🚀 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 20:11:05 -05:00
Tyler Lafleur
6a11643a94 Comprehensive Railway deployment fix: eliminate cache mount errors
MAJOR CHANGES:
- Replace complex uv-based Dockerfile with simple pip-only approach
- Add requirements.txt for standard Python dependency management
- Remove all uv commands that might trigger cache mount behavior
- Add .dockerignore for clean Railway build context
- Add nixpacks.toml to force Dockerfile usage (disable auto-detection)
- Update railway.json with explicit Docker configuration

PROBLEM SOLVED:
Railway 'Cache mount ID is not prefixed with cache key' error should be resolved
by eliminating all potential sources of cache mount directives.

DEPLOYMENT STRATEGY:
- Single-stage Docker build using standard pip
- Install graphiti-core from source with 'pip install .'
- Install MCP dependencies with 'pip install -r requirements.txt'
- No complex build tools or caching mechanisms
- Explicit Railway Docker configuration

🚀 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 19:58:40 -05:00
Tyler Lafleur
b56d469648 Fix Railway deployment: Remove cache mounts, add port config, create deployment guides
- Fix Docker cache mount issues that caused Railway build failures
- Add port argument support to MCP server for Railway compatibility
- Create Railway-optimized Dockerfile without cache mounts
- Add railway.json configuration for proper deployment
- Create comprehensive deployment and ChatGPT integration guides
- Add environment variable templates for Railway deployment
- Support Railway's PORT environment variable handling
- Ready for ChatGPT MCP SSE integration

🚀 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 19:44:48 -05:00