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,9 @@
# MCP OpenAPI Schema Server Configuration
# ======================================
# MCP Service
MCP_OPENAPI_SCHEMA_VERSION=latest
MCP_OPENAPI_SCHEMA_PORT_OVERRIDE=8000
# Timezone
TZ=UTC

View File

@@ -0,0 +1,24 @@
# OpenAPI Schema MCP Server
OpenAPI Schema MCP Server provides OpenAPI schema parsing and validation through the Model Context Protocol.
## Features
- 📋 **Schema Parsing** - Parse OpenAPI schemas
-**Validation** - Validate API schemas
- 🔍 **Schema Analysis** - Analyze schema structures
- 📊 **Schema Generation** - Generate schemas from APIs
## Environment Variables
| Variable | Default | Description |
| ---------------------------------- | -------- | -------------------------------- |
| `MCP_OPENAPI_SCHEMA_VERSION` | `latest` | MCP OpenAPI Schema image version |
| `MCP_OPENAPI_SCHEMA_PORT_OVERRIDE` | `8000` | MCP service port |
| `TZ` | `UTC` | Timezone |
## Quick Start
```bash
docker compose up -d
```

View File

@@ -0,0 +1,24 @@
# OpenAPI Schema MCP 服务器
OpenAPI Schema MCP 服务器通过 Model Context Protocol 提供 OpenAPI 模式解析和验证。
## 功能特性
- 📋 **模式解析** - 解析 OpenAPI 模式
-**验证** - 验证 API 模式
- 🔍 **模式分析** - 分析模式结构
- 📊 **模式生成** - 从 API 生成模式
## 环境变量
| 变量 | 默认值 | 说明 |
| ---------------------------------- | -------- | --------------------------- |
| `MCP_OPENAPI_SCHEMA_VERSION` | `latest` | MCP OpenAPI Schema 镜像版本 |
| `MCP_OPENAPI_SCHEMA_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
| `TZ` | `UTC` | 时区 |
## 快速开始
```bash
docker compose up -d
```

View File

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