index.ts•736 B
#!/usr/bin/env node
/**
* SRT Translation MCP Server Entry Point
*/
import { SRTTranslationMCPServer } from './mcp/server.js';
async function main() {
const server = new SRTTranslationMCPServer();
try {
await server.run();
} catch (error) {
console.error('Failed to start SRT Translation MCP Server:', error);
process.exit(1);
}
}
// Handle graceful shutdown
process.on('SIGINT', () => {
console.error('Shutting down SRT Translation MCP Server...');
process.exit(0);
});
process.on('SIGTERM', () => {
console.error('Shutting down SRT Translation MCP Server...');
process.exit(0);
});
// Start the server
main().catch((error) => {
console.error('Unhandled error:', error);
process.exit(1);
});