feat: add mcp-servers/**
This commit is contained in:
9
mcp-servers/text-to-graphql/.env.example
Normal file
9
mcp-servers/text-to-graphql/.env.example
Normal file
@@ -0,0 +1,9 @@
|
||||
# MCP Text to GraphQL Server Configuration
|
||||
# ========================================
|
||||
|
||||
# MCP Service
|
||||
MCP_TEXT_TO_GRAPHQL_VERSION=latest
|
||||
MCP_TEXT_TO_GRAPHQL_PORT_OVERRIDE=8000
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
24
mcp-servers/text-to-graphql/README.md
Normal file
24
mcp-servers/text-to-graphql/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Text to GraphQL MCP Server
|
||||
|
||||
Text to GraphQL MCP Server converts natural language text descriptions into GraphQL queries through the Model Context Protocol.
|
||||
|
||||
## Features
|
||||
|
||||
- 📝 **Text Parsing** - Parse text descriptions
|
||||
- 🔄 **Query Generation** - Generate GraphQL queries from text
|
||||
- 🔗 **API Integration** - Integrate with GraphQL APIs
|
||||
- 🎯 **Query Optimization** - Optimize generated queries
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ----------------------------------- | -------- | --------------------------------- |
|
||||
| `MCP_TEXT_TO_GRAPHQL_VERSION` | `latest` | MCP Text to GraphQL image version |
|
||||
| `MCP_TEXT_TO_GRAPHQL_PORT_OVERRIDE` | `8000` | MCP service port |
|
||||
| `TZ` | `UTC` | Timezone |
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
24
mcp-servers/text-to-graphql/README.zh.md
Normal file
24
mcp-servers/text-to-graphql/README.zh.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Text to GraphQL MCP 服务器
|
||||
|
||||
Text to GraphQL MCP 服务器通过 Model Context Protocol 将自然语言文本描述转换为 GraphQL 查询。
|
||||
|
||||
## 功能特性
|
||||
|
||||
- 📝 **文本解析** - 解析文本描述
|
||||
- 🔄 **查询生成** - 从文本生成 GraphQL 查询
|
||||
- 🔗 **API 集成** - 与 GraphQL API 集成
|
||||
- 🎯 **查询优化** - 优化生成的查询
|
||||
|
||||
## 环境变量
|
||||
|
||||
| 变量 | 默认值 | 说明 |
|
||||
| ----------------------------------- | -------- | ---------------------------- |
|
||||
| `MCP_TEXT_TO_GRAPHQL_VERSION` | `latest` | MCP Text to GraphQL 镜像版本 |
|
||||
| `MCP_TEXT_TO_GRAPHQL_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
|
||||
| `TZ` | `UTC` | 时区 |
|
||||
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
31
mcp-servers/text-to-graphql/docker-compose.yaml
Normal file
31
mcp-servers/text-to-graphql/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-text-to-graphql:
|
||||
<<: *default
|
||||
image: mcp/text-to-graphql:${MCP_TEXT_TO_GRAPHQL_VERSION:-latest}
|
||||
environment:
|
||||
- MCP_HOST=0.0.0.0
|
||||
- TZ=${TZ:-UTC}
|
||||
ports:
|
||||
- "${MCP_TEXT_TO_GRAPHQL_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