version: '3.8'
services:
# ==================================
# Production Service
# ==================================
app-prod:
build:
context: .
dockerfile: Dockerfile
image: mcp-calculator-server-prod # Name the built image
container_name: mcp-calculator-server-prod
ports:
# Map the host port to the container port defined in the .env file
- '${PORT}:${PORT}'
env_file:
- .env
environment:
- NODE_ENV=production
restart: unless-stopped
# ==================================
# Development Service
# ==================================
app-dev:
build:
context: .
dockerfile: Dockerfile
image: mcp-calculator-server-dev
container_name: mcp-calculator-server-dev
ports:
- '${PORT}:${PORT}'
env_file:
- .env
environment:
- NODE_ENV=development
volumes:
# Mount the local src directory into the container's src directory.
# This enables hot-reloading.
- ./src:/usr/src/app/src
# Override the default CMD to run in watch mode.
# Requires `tsx` to be a devDependency: npm install -D tsx
command: npx tsx --watch src/server.ts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yigitkonur/example-mcp-server-sse'
If you have feedback or need assistance with the MCP directory API, please join our Discord server