@venly/wallet-mcp
Version:
Production-ready MCP server enabling AI agents to perform Web3 wallet operations through Venly's blockchain infrastructure. Supports 14+ networks including Ethereum, Polygon, Arbitrum, and stablecoin operations.
39 lines • 1.13 kB
JavaScript
/**
* Venly MCP Server Entry Point
*
* Main entry point for the Venly MCP Server
*/
import { VenlyMCPServer } from './server/VenlyMCPServer.js';
/**
* Main function to start the server
*/
async function main() {
try {
const environment = process.env['VENLY_ENVIRONMENT'] || 'sandbox';
const server = new VenlyMCPServer(environment);
// Handle graceful shutdown
process.on('SIGINT', async () => {
console.log('\nReceived SIGINT, shutting down gracefully...');
await server.stop();
process.exit(0);
});
process.on('SIGTERM', async () => {
console.log('\nReceived SIGTERM, shutting down gracefully...');
await server.stop();
process.exit(0);
});
// Start the server
await server.start();
}
catch (error) {
console.error('Failed to start Venly MCP Server:', error);
process.exit(1);
}
}
// Run the server
main().catch((error) => {
console.error('Unhandled error:', error);
process.exit(1);
});
//# sourceMappingURL=index.js.map