feat: 初始化MCP时间服务器项目

添加核心功能模块包括时间工具集、服务器实现和测试
配置项目基础设置如ESLint、Prettier和Vitest
实现时间相关功能包括当前时间、时区信息和日期计算
添加README文档说明项目功能和使用方法
This commit is contained in:
2025-08-17 00:39:43 +08:00
parent 8322460c46
commit 82e579e11b
16 changed files with 5290 additions and 1 deletions

19
bin/mcp-time.js Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env node
/**
* MCP Time Server 命令行启动器
*/
import { TimeServer } from '../src/index.js';
async function main() {
try {
const server = new TimeServer();
await server.start();
} catch (error) {
console.error('Failed to start MCP Time Server:', error);
process.exit(1);
}
}
main();