Model Context Protocol Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides containerization capabilities for the MCP server, allowing for consistent deployment across environments using Docker images.

  • Enables deployment and management of the MCP server on Kubernetes clusters, with support for scaling, health checks, and configuration management through Kubernetes resources.

  • Supports running the MCP server on Node.js runtime environments, allowing developers to build and extend MCP functionality using Node.js ecosystem.

모델 컨텍스트 프로토콜(MCP) 서버

이 저장소에는 Azure Kubernetes Service(AKS)의 MCP 서버에 대한 Kubernetes 배포 구성이 포함되어 있습니다.

필수 조건

  • Azure CLI
  • 쿠벡틀
  • 도커
  • 노드.js 18+

프로젝트 구조

지엑스피1

배포 단계

  1. Docker 이미지를 빌드합니다.
docker build -t mcp-server:latest .
  1. Azure Container Registry(ACR)에 이미지를 푸시합니다.
az acr login --name <your-acr-name> docker tag mcp-server:latest <your-acr-name>.azurecr.io/mcp-server:latest docker push <your-acr-name>.azurecr.io/mcp-server:latest
  1. Kubernetes 매니페스트를 적용합니다.
kubectl apply -f k8s/
  1. 배포 확인:
kubectl get pods kubectl get services

구성

애플리케이션은 ConfigMap( k8s/configmap.yaml )에 정의된 환경 변수를 통해 구성할 수 있습니다.

건강 검진

해당 애플리케이션은 Kubernetes 상태 확인을 위한 /health 엔드포인트를 제공합니다.

모니터링

  • Azure Monitor를 통해 리소스 사용량을 모니터링할 수 있습니다.
  • 애플리케이션 로그는 kubectl logs 통해 사용할 수 있습니다.

보안

  • 해당 애플리케이션은 HTTPS를 사용합니다
  • CORS는 보안된 교차 출처 요청을 위해 구성되었습니다.
  • 남용을 방지하기 위해 속도 제한이 구현됩니다.
  • Helmet.js는 보안 헤더에 사용됩니다.

스케일링

배포는 기본적으로 3개의 복제본으로 구성됩니다. 다음을 사용하여 확장하거나 축소할 수 있습니다.

kubectl scale deployment mcp-server --replicas=<number>
-
security - not tested
F
license - not found
-
quality - not tested

Azure Kubernetes Service에서 구성 가능한 환경 변수, 상태 모니터링 및 확장 가능한 배포를 통한 안전한 통신을 가능하게 하는 모델 컨텍스트 프로토콜을 위한 Kubernetes 배포 서버입니다.

  1. Prerequisites
    1. Project Structure
      1. Deployment Steps
        1. Configuration
          1. Health Checks
            1. Monitoring
              1. Security
                1. Scaling
                  ID: p1578zb7bw