Skip to content

Implement Docker-based MCP Server#16

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-14
Draft

Implement Docker-based MCP Server#16
Copilot wants to merge 3 commits intomainfrom
copilot/fix-14

Conversation

Copy link
Contributor

Copilot AI commented May 24, 2025

This PR implements a containerized Model Context Protocol (MCP) server using Node.js and Docker in the docker-mcp folder. The implementation provides a complete, production-ready MCP server that follows the protocol specification.

Features

  • Complete Node.js implementation of the Model Context Protocol server
  • Session management with in-memory storage
  • Support for both transport options:
    • Modern Streamable HTTP endpoint (/v1/text/completions)
    • Legacy HTTP+SSE endpoint (/v1/text/completions/stream)
  • OAuth discovery endpoint and placeholder authentication
  • Error handling and logging using Winston
  • Comprehensive test suite using Jest
  • Docker containerization with proper production settings

Implementation Details

  • Used Express.js for the web server framework
  • Implemented a modular architecture with controllers, models, and services
  • Created class-based models that match the MCP specification
  • Added a simple session service for managing user sessions
  • Included structured error handling and logging

Deployment

The server can be deployed using either Docker directly or Docker Compose:

# Using Docker
docker build -t mcp-server .
docker run -p 3000:3000 mcp-server

# Using Docker Compose
docker-compose up

The implementation includes a comprehensive README with detailed instructions for building, running, and using the server.

Fixes #14.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits May 24, 2025 05:39
Co-authored-by: nsmaassel <1653803+nsmaassel@users.noreply.github.com>
Co-authored-by: nsmaassel <1653803+nsmaassel@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement Docker-based MCP Server in docker-mcp Implement Docker-based MCP Server May 24, 2025
Copilot AI requested a review from nsmaassel May 24, 2025 05:40
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.

Implement Docker-based MCP Server in docker-mcp

2 participants