Skip to content

feat: add HTTP/SSE transport for remote MCP access#5

Merged
getlatedev merged 2 commits into
developfrom
feat/http-sse-transport
Jan 14, 2026
Merged

feat: add HTTP/SSE transport for remote MCP access#5
getlatedev merged 2 commits into
developfrom
feat/http-sse-transport

Conversation

@getlatedev

Copy link
Copy Markdown
Contributor

Add HTTP server with Server-Sent Events (SSE) transport to enable remote access to the MCP server from Claude Code CLI and other clients.

Features:

  • Modular architecture with separated concerns (auth, config, routes)
  • API key authentication with multiple methods (Bearer, X-API-Key, query)
  • Health check endpoint for monitoring
  • Dual transport support (STDIO + HTTP/SSE)
  • Railway deployment ready with Dockerfile
  • Comprehensive documentation

New files:

  • src/late/mcp/constants.py - Global constants
  • src/late/mcp/config.py - Configuration management
  • src/late/mcp/auth.py - API key authentication
  • src/late/mcp/routes.py - Route handlers
  • src/late/mcp/http_server.py - Main HTTP server
  • Dockerfile - Container configuration for Railway
  • .dockerignore - Docker build optimization
  • docs/HTTP_DEPLOYMENT.md - Deployment guide

Modified:

  • pyproject.toml - Added starlette, uvicorn dependencies
  • server.py - Added main() function for STDIO entry point
  • README.md - Added HTTP deployment documentation
  • .env.example - Added MCP server configuration

Add HTTP server with Server-Sent Events (SSE) transport to enable
remote access to the MCP server from Claude Code CLI and other clients.

Features:
- Modular architecture with separated concerns (auth, config, routes)
- API key authentication with multiple methods (Bearer, X-API-Key, query)
- Health check endpoint for monitoring
- Dual transport support (STDIO + HTTP/SSE)
- Railway deployment ready with Dockerfile
- Comprehensive documentation

New files:
- src/late/mcp/constants.py - Global constants
- src/late/mcp/config.py - Configuration management
- src/late/mcp/auth.py - API key authentication
- src/late/mcp/routes.py - Route handlers
- src/late/mcp/http_server.py - Main HTTP server
- Dockerfile - Container configuration for Railway
- .dockerignore - Docker build optimization
- docs/HTTP_DEPLOYMENT.md - Deployment guide

Modified:
- pyproject.toml - Added starlette, uvicorn dependencies
- server.py - Added main() function for STDIO entry point
- README.md - Added HTTP deployment documentation
- .env.example - Added MCP server configuration
- Replace Optional[X] with X | None for modern type hints
- Prefix unused request parameters with underscore
@getlatedev getlatedev merged commit 5d0e11c into develop Jan 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants