Skip to content

feat(mcp): add Docker Compose deployment with HTTP/SSE transport#27

Open
Ntrakiyski wants to merge 1 commit intodadbodgeoff:mainfrom
Ntrakiyski:claude/docker-compose-mcp-deployment-hA8Q5
Open

feat(mcp): add Docker Compose deployment with HTTP/SSE transport#27
Ntrakiyski wants to merge 1 commit intodadbodgeoff:mainfrom
Ntrakiyski:claude/docker-compose-mcp-deployment-hA8Q5

Conversation

@Ntrakiyski
Copy link
Contributor

Add containerized deployment support for the MCP server:

  • HTTP server wrapper using SSE transport for MCP communication
  • Multi-stage Dockerfile for optimized production builds
  • Docker Compose configuration with volume mounts and health checks
  • Environment configuration with .env.example template

Endpoints:

  • GET /health - Health check
  • GET /sse - SSE endpoint for MCP protocol
  • POST /message - Send MCP messages

https://claude.ai/code/session_01WMmbBEX3pDA3y1WkvHxp9Y

Description

Brief description of what this PR does.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • New detector
  • Performance improvement
  • Refactoring (no functional changes)

Related Issues

Fixes #(issue number)

How Has This Been Tested?

Describe the tests you ran to verify your changes.

  • Unit tests pass (pnpm test)
  • Linting passes (pnpm lint)
  • Build succeeds (pnpm build)
  • Manual testing (describe below)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Screenshots (if applicable)

Add screenshots to help explain your changes.

Additional Notes

Any additional information reviewers should know.

Add containerized deployment support for the MCP server:
- HTTP server wrapper using SSE transport for MCP communication
- Multi-stage Dockerfile for optimized production builds
- Docker Compose configuration with volume mounts and health checks
- Environment configuration with .env.example template

Endpoints:
- GET /health - Health check
- GET /sse - SSE endpoint for MCP protocol
- POST /message - Send MCP messages

https://claude.ai/code/session_01WMmbBEX3pDA3y1WkvHxp9Y
dadbodgeoff pushed a commit that referenced this pull request Jan 26, 2026
Add containerized deployment support for the MCP server:
- HTTP server wrapper using SSE transport for MCP communication
- Multi-stage Dockerfile for optimized production builds
- Docker Compose configuration with volume mounts and health checks
- Environment configuration with .env.example template

Endpoints:
- GET /health - Health check
- GET /sse - SSE endpoint for MCP protocol
- POST /message - Send MCP messages

Based on PR #27 by @Ntrakiyski with style adjustments:
- Wrapped in main() function pattern for consistency
- Use console.error for server logs (stderr)
- Added tsconfig.base.json to Dockerfile
- Used SERVER_VERSION constant

Co-authored-by: Ntrakiyski <ntrakiyski@users.noreply.github.com>
@dadbodgeoff
Copy link
Owner

Hi! Thank you so much for thinking of this and contirbuting to drift! I had to make some minor changes to this so it would fit and be universal for all but it s now live and working and ive added proper contriubtion to the project! You were the first to do so and it means so much to me. Thanks for using drift and taking the time to build something useful for everyone!

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.

3 participants