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:
parent
a8bd8ab60a
commit
c3547593f0
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue