mirror of
https://github.com/hanzoai/mcp.git
synced 2026-10-15 12:30:12 +00:00
- New 'install' command with flags for different applications - Supports --claude-desktop, --claude-code, --cursor, --vscode - Add --all flag to install for all supported applications - Backward compatibility with deprecated install-desktop command - Improved server.js to default to serve command - Version bump to 2.0.2
17 lines
509 B
JavaScript
17 lines
509 B
JavaScript
#!/usr/bin/env node
|
|
|
|
/**
|
|
* Hanzo MCP Server Entry Point
|
|
* Starts the MCP server directly when executed
|
|
*/
|
|
|
|
// Add 'serve' to process.argv if no command is specified
|
|
// This makes the server start by default
|
|
if (!process.argv.slice(2).some(arg => ['serve', 'install', 'install-desktop', 'list-tools', '--version', '--help', '-V', '-h'].includes(arg))) {
|
|
process.argv.push('serve');
|
|
}
|
|
|
|
import('./dist/cli.js').catch(err => {
|
|
console.error('Failed to start Hanzo MCP server:', err);
|
|
process.exit(1);
|
|
}); |