添加核心功能模块包括时间工具集、服务器实现和测试 配置项目基础设置如ESLint、Prettier和Vitest 实现时间相关功能包括当前时间、时区信息和日期计算 添加README文档说明项目功能和使用方法
19 lines
327 B
JavaScript
Executable File
19 lines
327 B
JavaScript
Executable File
#!/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(); |