Add --version flag for debugging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Simen Svale 2025-12-30 04:36:08 +01:00
parent a8bd8ab60a
commit c3547593f0

View file

@ -18,6 +18,12 @@ import {
const VERSION = "1.0.1"; const VERSION = "1.0.1";
// Handle --version flag
if (process.argv.includes("--version") || process.argv.includes("-v")) {
console.log(`vice-mcp v${VERSION}`);
process.exit(0);
}
const server = new McpServer({ const server = new McpServer({
name: "vice-mcp", name: "vice-mcp",
version: VERSION, version: VERSION,