feat: add mcp-servers/**

This commit is contained in:
Sun-ZhenXing
2025-10-23 09:21:44 +08:00
parent f603ed5db9
commit 5c3fc0f844
94 changed files with 2211 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# MCP Docker Server Configuration
# ==============================
# MCP Service
MCP_DOCKER_VERSION=latest
MCP_DOCKER_PORT_OVERRIDE=8000
# Docker Connection
DOCKER_HOST=unix:///var/run/docker.sock
# Timezone
TZ=UTC

View File

@@ -0,0 +1,25 @@
# Docker MCP Server
Docker MCP Server provides Docker container management capabilities through the Model Context Protocol.
## Features
- 🐳 **Container Management** - Manage Docker containers
- 📦 **Image Management** - Manage Docker images
- 🔍 **Container Inspection** - Inspect container details
- 📊 **Container Statistics** - Get container statistics
## Environment Variables
| Variable | Default | Description |
| -------------------------- | ----------------------------- | ------------------------ |
| `MCP_DOCKER_VERSION` | `latest` | MCP Docker image version |
| `MCP_DOCKER_PORT_OVERRIDE` | `8000` | MCP service port |
| `DOCKER_HOST` | `unix:///var/run/docker.sock` | Docker socket path |
| `TZ` | `UTC` | Timezone |
## Quick Start
```bash
docker compose up -d
```

View File

@@ -0,0 +1,25 @@
# Docker MCP 服务器
Docker MCP 服务器通过 Model Context Protocol 提供 Docker 容器管理功能。
## 功能特性
- 🐳 **容器管理** - 管理 Docker 容器
- 📦 **镜像管理** - 管理 Docker 镜像
- 🔍 **容器检查** - 检查容器详情
- 📊 **容器统计** - 获取容器统计信息
## 环境变量
| 变量 | 默认值 | 说明 |
| -------------------------- | ----------------------------- | ------------------- |
| `MCP_DOCKER_VERSION` | `latest` | MCP Docker 镜像版本 |
| `MCP_DOCKER_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
| `DOCKER_HOST` | `unix:///var/run/docker.sock` | Docker 套接字路径 |
| `TZ` | `UTC` | 时区 |
## 快速开始
```bash
docker compose up -d
```

View File

@@ -0,0 +1,34 @@
x-default: &default
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
mcp-docker:
<<: *default
image: mcp/docker:${MCP_DOCKER_VERSION:-latest}
environment:
- DOCKER_HOST=${DOCKER_HOST:-unix:///var/run/docker.sock}
- MCP_HOST=0.0.0.0
- TZ=${TZ:-UTC}
ports:
- "${MCP_DOCKER_PORT_OVERRIDE:-8000}:8000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1.00'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M