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 E2B Server Configuration
# ==========================
# MCP Service
MCP_E2B_VERSION=latest
MCP_E2B_PORT_OVERRIDE=8000
# E2B API Key (Required)
E2B_API_KEY=
# Timezone
TZ=UTC

25
mcp-servers/e2b/README.md Normal file
View File

@@ -0,0 +1,25 @@
# E2B MCP Server
E2B MCP Server provides cloud-based code execution and development environment capabilities through the Model Context Protocol.
## Features
- 💻 **Code Execution** - Execute code safely in cloud
- 📁 **File Management** - Manage files and directories
- 🖥️ **Terminal Access** - Access terminal environment
- 🔧 **Development Tools** - Various development tools
## Environment Variables
| Variable | Default | Description |
| ----------------------- | -------- | ---------------------- |
| `MCP_E2B_VERSION` | `latest` | MCP E2B image version |
| `MCP_E2B_PORT_OVERRIDE` | `8000` | MCP service port |
| `E2B_API_KEY` | - | E2B API key (required) |
| `TZ` | `UTC` | Timezone |
## Quick Start
```bash
docker compose up -d
```

View File

@@ -0,0 +1,25 @@
# E2B MCP 服务器
E2B MCP 服务器通过 Model Context Protocol 提供云端代码执行和开发环境功能。
## 功能特性
- 💻 **代码执行** - 在云端安全执行代码
- 📁 **文件管理** - 管理文件和目录
- 🖥️ **终端访问** - 访问终端环境
- 🔧 **开发工具** - 各种开发工具
## 环境变量
| 变量 | 默认值 | 说明 |
| ----------------------- | -------- | -------------------- |
| `MCP_E2B_VERSION` | `latest` | MCP E2B 镜像版本 |
| `MCP_E2B_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
| `E2B_API_KEY` | - | E2B API 密钥(必需) |
| `TZ` | `UTC` | 时区 |
## 快速开始
```bash
docker compose up -d
```

View File

@@ -0,0 +1,32 @@
x-default: &default
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
mcp-e2b:
<<: *default
image: mcp/e2b:${MCP_E2B_VERSION:-latest}
environment:
- E2B_API_KEY=${E2B_API_KEY}
- MCP_HOST=0.0.0.0
- TZ=${TZ:-UTC}
ports:
- "${MCP_E2B_PORT_OVERRIDE:-8000}:8000"
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