How soulchildtc/mcp-server-demo works
Project type and purpose
• This is a standalone Go‐based microservice (“mcp-server-demo”) built with the mcp‐go framework. It exposes HTTP endpoints (health check, weather) and is containerized for Kubernetes deployment.
• There is no user‐facing UI; it is purely a backend API service demonstrating configuration management, routing, business logic, data modeling, and logging.
File structure
• cmd/server: application entry point (main.go). Initializes config, router, logging, and starts HTTP server.
• internal/config: configuration loader and environment variable mapping.
• internal/handler: HTTP handlers (health.go, weather.go) that decode requests, invoke the service layer, and marshal responses.
• internal/service: business logic (weather.go) that may interact with external APIs or perform computations.
• internal/model: domain models (weather.go) defining data structures.
• pkg/log: shared logging library used across the app.
• deploy: Dockerfile and Kubernetes manifests (Deployment, Ingress) for container build and cluster deployment.
• go.mod/go.sum: Go module dependencies.
Readme insights
• Describes a simple mcp-go server demo.
• Shows that the app is invoked via go run cmd/server.