feat: add mcp-servers/**
This commit is contained in:
9
mcp-servers/time/.env.example
Normal file
9
mcp-servers/time/.env.example
Normal file
@@ -0,0 +1,9 @@
|
||||
# MCP Time Server Configuration
|
||||
# ============================
|
||||
|
||||
# MCP Service
|
||||
MCP_TIME_VERSION=latest
|
||||
MCP_TIME_PORT_OVERRIDE=8000
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
24
mcp-servers/time/README.md
Normal file
24
mcp-servers/time/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Time MCP Server
|
||||
|
||||
Time MCP Server provides time and timezone information capabilities through the Model Context Protocol.
|
||||
|
||||
## Features
|
||||
|
||||
- 🕐 **Current Time** - Get current time
|
||||
- 🌍 **Timezone Support** - Work with multiple timezones
|
||||
- 📅 **Date/Time Operations** - Various date/time operations
|
||||
- ⏰ **Time Conversions** - Convert between timezones
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ------------------------ | -------- | ---------------------- |
|
||||
| `MCP_TIME_VERSION` | `latest` | MCP Time image version |
|
||||
| `MCP_TIME_PORT_OVERRIDE` | `8000` | MCP service port |
|
||||
| `TZ` | `UTC` | Timezone |
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
24
mcp-servers/time/README.zh.md
Normal file
24
mcp-servers/time/README.zh.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Time MCP 服务器
|
||||
|
||||
Time MCP 服务器通过 Model Context Protocol 提供时间和时区信息功能。
|
||||
|
||||
## 功能特性
|
||||
|
||||
- 🕐 **当前时间** - 获取当前时间
|
||||
- 🌍 **时区支持** - 使用多个时区
|
||||
- 📅 **日期/时间操作** - 各种日期/时间操作
|
||||
- ⏰ **时间转换** - 在时区之间转换
|
||||
|
||||
## 环境变量
|
||||
|
||||
| 变量 | 默认值 | 说明 |
|
||||
| ------------------------ | -------- | ----------------- |
|
||||
| `MCP_TIME_VERSION` | `latest` | MCP Time 镜像版本 |
|
||||
| `MCP_TIME_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
|
||||
| `TZ` | `UTC` | 时区 |
|
||||
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
31
mcp-servers/time/docker-compose.yaml
Normal file
31
mcp-servers/time/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-time:
|
||||
<<: *default
|
||||
image: mcp/time:${MCP_TIME_VERSION:-latest}
|
||||
environment:
|
||||
- MCP_HOST=0.0.0.0
|
||||
- TZ=${TZ:-UTC}
|
||||
ports:
|
||||
- "${MCP_TIME_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