feat: add mcp-servers/**
This commit is contained in:
12
mcp-servers/docker/.env.example
Normal file
12
mcp-servers/docker/.env.example
Normal 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
|
||||
25
mcp-servers/docker/README.md
Normal file
25
mcp-servers/docker/README.md
Normal 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
|
||||
```
|
||||
25
mcp-servers/docker/README.zh.md
Normal file
25
mcp-servers/docker/README.zh.md
Normal 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
|
||||
```
|
||||
34
mcp-servers/docker/docker-compose.yaml
Normal file
34
mcp-servers/docker/docker-compose.yaml
Normal 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
|
||||
Reference in New Issue
Block a user