feat: add mcp-servers/**
This commit is contained in:
9
mcp-servers/api-gateway/.env.example
Normal file
9
mcp-servers/api-gateway/.env.example
Normal file
@@ -0,0 +1,9 @@
|
||||
# MCP API Gateway Server Configuration
|
||||
# ===================================
|
||||
|
||||
# MCP Service
|
||||
MCP_API_GATEWAY_VERSION=latest
|
||||
MCP_API_GATEWAY_PORT_OVERRIDE=8000
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
24
mcp-servers/api-gateway/README.md
Normal file
24
mcp-servers/api-gateway/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# API Gateway MCP Server
|
||||
|
||||
API Gateway MCP Server provides API gateway and management capabilities through the Model Context Protocol.
|
||||
|
||||
## Features
|
||||
|
||||
- 🚪 **API Gateway** - Manage API access
|
||||
- 🔐 **Authentication** - Handle API authentication
|
||||
- 📊 **Rate Limiting** - Implement rate limiting
|
||||
- 📝 **API Documentation** - Serve API documentation
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ------------------------------- | -------- | ----------------------------- |
|
||||
| `MCP_API_GATEWAY_VERSION` | `latest` | MCP API Gateway image version |
|
||||
| `MCP_API_GATEWAY_PORT_OVERRIDE` | `8000` | MCP service port |
|
||||
| `TZ` | `UTC` | Timezone |
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
24
mcp-servers/api-gateway/README.zh.md
Normal file
24
mcp-servers/api-gateway/README.zh.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# API Gateway MCP 服务器
|
||||
|
||||
API Gateway MCP 服务器通过 Model Context Protocol 提供 API 网关和管理功能。
|
||||
|
||||
## 功能特性
|
||||
|
||||
- 🚪 **API 网关** - 管理 API 访问
|
||||
- 🔐 **身份验证** - 处理 API 身份验证
|
||||
- 📊 **速率限制** - 实施速率限制
|
||||
- 📝 **API 文档** - 提供 API 文档
|
||||
|
||||
## 环境变量
|
||||
|
||||
| 变量 | 默认值 | 说明 |
|
||||
| ------------------------------- | -------- | ------------------------ |
|
||||
| `MCP_API_GATEWAY_VERSION` | `latest` | MCP API Gateway 镜像版本 |
|
||||
| `MCP_API_GATEWAY_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
|
||||
| `TZ` | `UTC` | 时区 |
|
||||
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
31
mcp-servers/api-gateway/docker-compose.yaml
Normal file
31
mcp-servers/api-gateway/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-api-gateway:
|
||||
<<: *default
|
||||
image: mcp/api-gateway:${MCP_API_GATEWAY_VERSION:-latest}
|
||||
environment:
|
||||
- MCP_HOST=0.0.0.0
|
||||
- TZ=${TZ:-UTC}
|
||||
ports:
|
||||
- "${MCP_API_GATEWAY_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