@toponextech/smartembed-mcp-server
Version:
MCP server for intelligent embedded development with PlatformIO - AI-powered project creation, error diagnosis, and device detection
36 lines • 1.02 kB
JavaScript
/**
* SmartEmbed MCP Server
* Entry point for the MCP server
*/
Object.defineProperty(exports, "__esModule", { value: true });
const server_1 = require("./server");
async function main() {
const server = new server_1.SmartEmbedServer();
try {
await server.start();
console.error('SmartEmbed MCP Server started successfully');
}
catch (error) {
console.error('Failed to start SmartEmbed MCP Server:', error);
process.exit(1);
}
// Handle graceful shutdown
process.on('SIGINT', async () => {
console.error('Shutting down SmartEmbed MCP Server...');
await server.stop();
process.exit(0);
});
process.on('SIGTERM', async () => {
console.error('Shutting down SmartEmbed MCP Server...');
await server.stop();
process.exit(0);
});
}
// Run the server
main().catch(error => {
console.error('Fatal error:', error);
process.exit(1);
});
//# sourceMappingURL=index.js.map
;