UNPKG

current-time-timezone-server

Version:

MCP服务器,提供NTP校准的当前时间和时区相关功能,支持stdio和HTTP/SSE,可配置host和protocol,支持.env文件,返回指定时区的本地时间

48 lines (47 loc) 1.16 kB
{ "name": "current-time-timezone-server", "version": "1.1.12", "description": "MCP服务器,提供NTP校准的当前时间和时区相关功能,支持stdio和HTTP/SSE,可配置host和protocol,支持.env文件,返回指定时区的本地时间", "main": "dist/index.js", "type": "module", "bin": { "current-time-timezone-server": "dist/index.js", "current-time-timezone-server-sse": "dist/server.js" }, "scripts": { "build": "tsc", "dev": "tsc --watch", "start": "node dist/index.js", "start:sse": "node dist/server.js", "clean": "rm -rf dist", "prepublishOnly": "npm run build" }, "keywords": [ "mcp", "server", "time", "timezone", "ntp", "current-time", "sse", "http", "dotenv" ], "author": "WeCoder", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.16.0", "dotenv": "^16.4.5", "express": "^4.18.2", "ntp-client": "^0.5.3", "zod": "^3.23.8" }, "devDependencies": { "@types/express": "^4.17.21", "@types/node": "^20.11.0", "typescript": "^5.3.3" }, "engines": { "node": ">=18.0.0" } }