feat: add mcp-servers/**
This commit is contained in:
9
mcp-servers/openapi/.env.example
Normal file
9
mcp-servers/openapi/.env.example
Normal file
@@ -0,0 +1,9 @@
|
||||
# MCP OpenAPI Server Configuration
|
||||
# ===============================
|
||||
|
||||
# MCP Service
|
||||
MCP_OPENAPI_VERSION=latest
|
||||
MCP_OPENAPI_PORT_OVERRIDE=8000
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
23
mcp-servers/openapi/README.md
Normal file
23
mcp-servers/openapi/README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# OpenAPI MCP Server
|
||||
|
||||
OpenAPI MCP Server provides OpenAPI specification support through the Model Context Protocol.
|
||||
|
||||
## Features
|
||||
|
||||
- 📋 **API Documentation** - Parse and analyze OpenAPI specs
|
||||
- 🔌 **API Integration** - Connect to OpenAPI services
|
||||
- 📐 **Schema Validation** - Validate API schemas
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
| --------------------------- | -------- | ------------------------- |
|
||||
| `MCP_OPENAPI_VERSION` | `latest` | MCP OpenAPI image version |
|
||||
| `MCP_OPENAPI_PORT_OVERRIDE` | `8000` | MCP service port |
|
||||
| `TZ` | `UTC` | Timezone |
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
23
mcp-servers/openapi/README.zh.md
Normal file
23
mcp-servers/openapi/README.zh.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# OpenAPI MCP 服务器
|
||||
|
||||
OpenAPI MCP 服务器通过 Model Context Protocol 提供 OpenAPI 规范支持。
|
||||
|
||||
## 功能特性
|
||||
|
||||
- 📋 **API 文档** - 解析和分析 OpenAPI 规范
|
||||
- 🔌 **API 集成** - 连接到 OpenAPI 服务
|
||||
- 📐 **模式验证** - 验证 API 模式
|
||||
|
||||
## 环境变量
|
||||
|
||||
| 变量 | 默认值 | 说明 |
|
||||
| --------------------------- | -------- | -------------------- |
|
||||
| `MCP_OPENAPI_VERSION` | `latest` | MCP OpenAPI 镜像版本 |
|
||||
| `MCP_OPENAPI_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
|
||||
| `TZ` | `UTC` | 时区 |
|
||||
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
31
mcp-servers/openapi/docker-compose.yaml
Normal file
31
mcp-servers/openapi/docker-compose.yaml
Normal 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:
|
||||
<<: *default
|
||||
image: mcp/openapi:${MCP_OPENAPI_VERSION:-latest}
|
||||
environment:
|
||||
- MCP_HOST=0.0.0.0
|
||||
- TZ=${TZ:-UTC}
|
||||
ports:
|
||||
- "${MCP_OPENAPI_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
|
||||
Reference in New Issue
Block a user