feat: 初始化MCP时间服务器项目
添加核心功能模块包括时间工具集、服务器实现和测试 配置项目基础设置如ESLint、Prettier和Vitest 实现时间相关功能包括当前时间、时区信息和日期计算 添加README文档说明项目功能和使用方法
This commit is contained in:
19
bin/mcp-time.js
Executable file
19
bin/mcp-time.js
Executable 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();
|
Reference in New Issue
Block a user