添加核心功能模块包括时间工具集、服务器实现和测试 配置项目基础设置如ESLint、Prettier和Vitest 实现时间相关功能包括当前时间、时区信息和日期计算 添加README文档说明项目功能和使用方法
52 lines
1.2 KiB
JSON
52 lines
1.2 KiB
JSON
{
|
|
"name": "mcp-time-server",
|
|
"version": "1.0.0",
|
|
"description": "A Model Context Protocol (MCP) server for time-related tools and utilities",
|
|
"type": "module",
|
|
"main": "src/index.js",
|
|
"bin": {
|
|
"mcp-time": "./bin/mcp-time.js"
|
|
},
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"dev": "node --watch src/index.js",
|
|
"test": "vitest",
|
|
"test:watch": "vitest --watch",
|
|
"lint": "eslint src tests",
|
|
"lint:fix": "eslint src tests --fix",
|
|
"format": "prettier --write src tests",
|
|
"format:check": "prettier --check src tests"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "http://60.205.233.184:3010/deastern/mcp-zero.git"
|
|
},
|
|
"keywords": [
|
|
"mcp",
|
|
"model-context-protocol",
|
|
"time",
|
|
"datetime",
|
|
"timezone",
|
|
"claude",
|
|
"ai-tools"
|
|
],
|
|
"author": "MCP Time Team",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.17.3",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.33.0",
|
|
"@types/node": "^24.3.0",
|
|
"eslint": "^9.33.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"globals": "^16.3.0",
|
|
"prettier": "^3.6.2",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|