mcp-wtit
Version:
A Model Context Protocol (MCP) server that provides current time in ISO8601 format with timezone support
27 lines • 741 B
JavaScript
import { Container } from './di/container.js';
// Handle graceful shutdown
process.on('SIGINT', () => {
console.error('\nShutting down MCP Time Server...');
process.exit(0);
});
process.on('SIGTERM', () => {
console.error('\nShutting down MCP Time Server...');
process.exit(0);
});
async function main() {
try {
const container = Container.getInstance();
const timeServer = container.timeServer;
await timeServer.start();
}
catch (error) {
console.error('Failed to start MCP Time Server:', error);
process.exit(1);
}
}
main().catch((error) => {
console.error('Unhandled error:', error);
process.exit(1);
});
//# sourceMappingURL=index.js.map